fix toggling protected flag and display of the title

This commit is contained in:
zadam
2021-09-08 22:35:32 +02:00
parent 151687cd9b
commit 010f075ac5
4 changed files with 17 additions and 3 deletions

View File

@@ -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);