shoc-frontend-new/src/test/app
Alexandre Brandizzi b55938104a fix(workorders): Site dialog sends only complete contacts without site ids to the work order
The Site dialog loads extra contacts from the site record with their site
contact ids so the site request can update rows in place. buildSiteDialogPatch
copied those rows verbatim into the work-order patch, so onSave received
siteContactId (and half-filled rows) even though the type documents that the
id is never sent on work-order patches. The wire serializer already stripped
both, but the patch handed to the board did not.

Run the patch's extra contacts through normalizeAdditionalContacts, the same
helper the work-order serializer uses, so the patch carries only complete
name/phone/notes rows. An emptied list still clears the work order's copy.
The site request keeps its ids because it is built from the form fields.
2026-09-25 19:04:32 -03:00
..
(auth) chore: upgrade frontend dependencies (#24) 2026-07-14 21:35:59 -03:00
(protected) fix(workorders): Site dialog sends only complete contacts without site ids to the work order 2026-09-25 19:04:32 -03:00
v Merge pull request #266 from Sea-Haven-Industries/fix/ab/sh-400-vendor-readonly-uplifts 2026-09-25 06:20:35 +00:00