added getTargetNote to froca's attribute, fixes #2981

This commit is contained in:
zadam
2022-07-11 23:15:16 +02:00
parent ea20d23d11
commit 377922eccf
7 changed files with 398 additions and 61 deletions

View File

@@ -477,6 +477,12 @@ class Note extends AbstractEntity {
return this.inheritableAttributeCache;
}
/**
* @param type
* @param name
* @param [value]
* @returns {boolean}
*/
hasAttribute(type, name, value) {
return !!this.getAttributes().find(attr =>
attr.type === type
@@ -1277,7 +1283,7 @@ class Note extends AbstractEntity {
? this.dateModified
: contentMetadata.dateModified,
dateCreated: dateUtils.localNowDateTime()
}).save();
}, true).save();
noteRevision.setContent(content);