From f5f48ef6c4b5a3516bb8b8df6f09b13e3be67a0b Mon Sep 17 00:00:00 2001 From: zadam Date: Mon, 14 Sep 2020 21:08:11 +0200 Subject: [PATCH] copy child: attrs also when defined on a template/parent note --- src/services/notes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/notes.js b/src/services/notes.js index 87ddaff66..745a87542 100644 --- a/src/services/notes.js +++ b/src/services/notes.js @@ -61,7 +61,7 @@ function deriveMime(type, mime) { } function copyChildAttributes(parentNote, childNote) { - for (const attr of parentNote.getOwnedAttributes()) { + for (const attr of parentNote.getAttributes()) { if (attr.name.startsWith("child:")) { new Attribute({ noteId: childNote.noteId,