Skip to content

always preserve old text when editing a note

Ghost User requested to merge gh-b77c0252/128/unknown/refs/pull/128/head into develop

Created by: dakkar

before this change:

  • create a note, with text
    • note has a row with the text
    • note_edit doesn't have any matching row
  • edit the note, removing all the text
    • the row in note has the new, empty, text
    • note_edit has a matching row, but its oldText is NULL

so the original text is lost

after this change, the row in note_edit always keeps the previous text

Checklist

  • Read the contribution guide
  • Test working in a local environment
  • (If needed) Add story of storybook
  • (If needed) Update CHANGELOG.md
  • (If possible) Add tests

Merge request reports