diff --git a/notes-service/src/main/java/org/exoplatform/wiki/service/impl/NoteServiceImpl.java b/notes-service/src/main/java/org/exoplatform/wiki/service/impl/NoteServiceImpl.java index 83544d4b38..42d8b3793f 100644 --- a/notes-service/src/main/java/org/exoplatform/wiki/service/impl/NoteServiceImpl.java +++ b/notes-service/src/main/java/org/exoplatform/wiki/service/impl/NoteServiceImpl.java @@ -2092,14 +2092,13 @@ private Map copyNotePageProperties(Page oldNote, } if (newNoteMetadataItem != null) { newNoteMetadataItem.setProperties(properties); - metadataService.updateMetadataItem(newNoteMetadataItem, Long.parseLong(identity.getId()), false); + metadataService.updateMetadataItem(newNoteMetadataItem, Long.parseLong(identity.getId())); } else { try { metadataService.createMetadataItem(newNoteMetadataObject, NOTES_METADATA_KEY, properties, - Long.parseLong(identity.getId()), - false); + Long.parseLong(identity.getId())); } catch (Exception e) { log.error("Error while creating note metadata item", e); } @@ -2160,7 +2159,7 @@ && isOriginalFeaturedImage(draftPage, getNoteByIdAndLang(Long.valueOf(draftPage. properties.remove(FEATURED_IMAGE_UPDATED_DATE); properties.remove(FEATURED_IMAGE_ALT_TEXT); metadataItem.setProperties(properties); - metadataService.updateMetadataItem(metadataItem, userIdentityId, false); + metadataService.updateMetadataItem(metadataItem, userIdentityId); } } @@ -2218,10 +2217,10 @@ public NotePageProperties saveNoteMetadata(NotePageProperties notePageProperties properties.put(FEATURED_IMAGE_ALT_TEXT, notePageProperties.getFeaturedImage().getAltText()); } if (metadataItem == null) { - metadataService.createMetadataItem(noteMetadataObject, NOTES_METADATA_KEY, properties, userIdentityId, false); + metadataService.createMetadataItem(noteMetadataObject, NOTES_METADATA_KEY, properties, userIdentityId); } else { metadataItem.setProperties(properties); - metadataService.updateMetadataItem(metadataItem, userIdentityId, false); + metadataService.updateMetadataItem(metadataItem, userIdentityId); } if (featuredImage != null) { featuredImage.setId(featuredImageId);