mirror of
https://github.com/zadam/trilium.git
synced 2025-11-05 04:45:47 +01:00
fix toggling protected flag and display of the title
This commit is contained in:
@@ -57,6 +57,10 @@ class AbstractEntity {
|
||||
});
|
||||
}
|
||||
|
||||
getPojoToSave() {
|
||||
return this.getPojo();
|
||||
}
|
||||
|
||||
save() {
|
||||
const entityName = this.constructor.entityName;
|
||||
const primaryKeyName = this.constructor.primaryKeyName;
|
||||
@@ -67,7 +71,7 @@ class AbstractEntity {
|
||||
this.beforeSaving();
|
||||
}
|
||||
|
||||
const pojo = this.getPojo();
|
||||
const pojo = this.getPojoToSave();
|
||||
|
||||
sql.transactional(() => {
|
||||
sql.upsert(entityName, primaryKeyName, pojo);
|
||||
|
||||
Reference in New Issue
Block a user