Order Notes Persistence Fix
Fixed notes disappearing on Save & Continue
Problem
When a user added a note via the Order Notes dialog and then clicked Save & Continue, the newly added note content would become empty. This was a data loss bug affecting live ordering operations.
From the Chatlogs
The issue was first reported by Matt on Feb 6 as part of day-one user feedback:
"Can't create messages in the order function (same issue shown to Villar in JAN). Refer Video Attached. Urgent issue." Mark identified a temporary workaround:
"The issue occurs when adding an order note and clicking Save & Continue. Temporary solution: Please advise the team not to add the message and click Save & Continue at the same time. Add the message first, reload the page, then do update and click Save & Continue."
Root Cause
The save action was submitting stale form state, which overwrote the newly added note content.
Fix
Jayrex deployed the permanent fix on Feb 10:
"Notes added from the dialog are now properly synced before save, so content is preserved. This patch is now deployed to production."
Impact
Eliminated risk of data loss during live ordering operations.