Skip to content

Commit

Permalink
fix: Properties of newly created note are not updated - EXO-74190 - M…
Browse files Browse the repository at this point in the history
…eed-io/MIPs#128 (#1107)

Properties of newly created note are not updated
  • Loading branch information
hakermi authored and azayati committed Sep 18, 2024
1 parent 3c1ea93 commit 180d9c2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import java.util.Objects;
import java.util.Optional;
import java.util.ResourceBundle;
import java.util.Set;
Expand Down Expand Up @@ -805,7 +806,7 @@ public Response updateNoteById(@Parameter(description = "Note id", required = tr
noteService.removeDraftOfNote(noteParams, note.getLang());
}
} else if ((featuredImage != null && (featuredImage.isToDelete() || featuredImage.getUploadId() != null))
|| (note_.getProperties() != null && !notePageProperties.getSummary().equals(note_.getProperties().getSummary()))) {
|| !Objects.equals(note_.getProperties(), notePageProperties)) {
if (StringUtils.isBlank(note.getLang())) {
note_.setProperties(notePageProperties);
note_ = noteService.updateNote(note_, PageUpdateType.EDIT_PAGE_PROPERTIES, identity);
Expand Down

0 comments on commit 180d9c2

Please sign in to comment.