inherit also note type and mime from template note, closes #1475

This commit is contained in:
zadam 2020-12-07 09:35:39 +01:00
parent e56979c482
commit 1982d054ef

View file

@ -70,6 +70,10 @@ eventService.subscribe(eventService.ENTITY_CREATED, ({ entityName, entity }) =>
if (templateNoteContent) { if (templateNoteContent) {
note.setContent(templateNoteContent); note.setContent(templateNoteContent);
} }
note.type = templateNote.type;
note.mime = templateNote.mime;
note.save();
} }
noteService.duplicateSubtreeWithoutRoot(templateNote.noteId, note.noteId); noteService.duplicateSubtreeWithoutRoot(templateNote.noteId, note.noteId);