mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
copy child: attrs also when defined on a template/parent note
This commit is contained in:
parent
f1ed114167
commit
f5f48ef6c4
@ -61,7 +61,7 @@ function deriveMime(type, mime) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function copyChildAttributes(parentNote, childNote) {
|
function copyChildAttributes(parentNote, childNote) {
|
||||||
for (const attr of parentNote.getOwnedAttributes()) {
|
for (const attr of parentNote.getAttributes()) {
|
||||||
if (attr.name.startsWith("child:")) {
|
if (attr.name.startsWith("child:")) {
|
||||||
new Attribute({
|
new Attribute({
|
||||||
noteId: childNote.noteId,
|
noteId: childNote.noteId,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user