copy child: attrs also when defined on a template/parent note

This commit is contained in:
zadam 2020-09-14 21:08:11 +02:00
parent f1ed114167
commit f5f48ef6c4

View File

@ -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,