Problem
The edit form (@@edit) offers a change-note field (schema-driven via the plone.versioning behavior), but a note entered there never shows up afterwards — neither in the @@history view's "Change note" column nor in the @history REST payload.
Steps to reproduce
- Edit any versionable content via
@@edit.
- Fill in the change-note field and save.
- Open
@@history for that content.
- The new versioning entry has an empty "Change note".
Analysis so far
- The History view is not the culprit: its "Change note" column renders the
comments field from the @history endpoint, and entries that do have comments (e.g. created through Volto) display fine.
changeNote is not handled anywhere in @plone/cmsui outside the History view, so the edit route most likely never includes the note in the PATCH request.
- Prior art: Volto's form sends
changeNote along with the save request, and plone.restapi passes it to the versioning machinery.
Expected behavior
A change note entered in the edit form is submitted with the save request and appears as the comments of the resulting versioning entry in @history / the @@history view.
References
Problem
The edit form (
@@edit) offers a change-note field (schema-driven via theplone.versioningbehavior), but a note entered there never shows up afterwards — neither in the@@historyview's "Change note" column nor in the@historyREST payload.Steps to reproduce
@@edit.@@historyfor that content.Analysis so far
commentsfield from the@historyendpoint, and entries that do have comments (e.g. created through Volto) display fine.changeNoteis not handled anywhere in@plone/cmsuioutside the History view, so the edit route most likely never includes the note in the PATCH request.changeNotealong with the save request, andplone.restapipasses it to the versioning machinery.Expected behavior
A change note entered in the edit form is submitted with the save request and appears as the
commentsof the resulting versioning entry in@history/ the@@historyview.References
packages/volto/src/components/manage/Form/Form.jsx(changeNotehandling)