fix saving note revisions, closes #2915

This commit is contained in:
zadam
2022-06-13 22:54:08 +02:00
parent 23e9bcfdc5
commit df3fdb59c5
6 changed files with 15 additions and 7 deletions

View File

@@ -97,7 +97,8 @@ function restoreNoteRevision(req) {
if (noteRevision) {
const note = noteRevision.getNote();
noteRevisionService.createNoteRevision(note);
note.saveNoteRevision();
noteRevisionService.protectNoteRevisions(note);
note.title = noteRevision.title;
note.setContent(noteRevision.getContent());