From 9cd5bdeb53124218b250847188f6725448331941 Mon Sep 17 00:00:00 2001 From: zadam Date: Thu, 16 Mar 2023 17:49:35 +0100 Subject: [PATCH] fix note revision --- src/becca/entities/bnote_revision.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/becca/entities/bnote_revision.js b/src/becca/entities/bnote_revision.js index 653069dce..6457a37da 100644 --- a/src/becca/entities/bnote_revision.js +++ b/src/becca/entities/bnote_revision.js @@ -106,12 +106,14 @@ class BNoteRevision extends AbstractBeccaEntity { utcDateLastEdited: this.utcDateLastEdited, utcDateCreated: this.utcDateCreated, utcDateModified: this.utcDateModified, + content: this.content, // used when retrieving full note revision to frontend contentLength: this.contentLength }; } getPojoToSave() { const pojo = this.getPojo(); + delete pojo.content; // not getting persisted delete pojo.contentLength; // not getting persisted if (pojo.isProtected) {