fix saving revisions for non-text types, closes #4176

This commit is contained in:
zadam 2023-08-17 16:39:57 +02:00
parent 6c96cca3a5
commit d706b3a447

View File

@ -1610,10 +1610,10 @@ class BNote extends AbstractBeccaEntity {
noteContent = noteContent.replaceAll(new RegExp(`href="[^"]*attachmentId=${noteAttachment.attachmentId}[^"]*"`, 'gi'), noteContent = noteContent.replaceAll(new RegExp(`href="[^"]*attachmentId=${noteAttachment.attachmentId}[^"]*"`, 'gi'),
`href="api/attachments/${revisionAttachment.attachmentId}/download"`); `href="api/attachments/${revisionAttachment.attachmentId}/download"`);
} }
revision.setContent(noteContent, {forceSave: true});
} }
revision.setContent(noteContent);
return revision; return revision;
}); });
} }