mirror of
https://github.com/Sea-Haven-Industries/shoc-frontend-new.git
synced 2026-10-05 00:12:09 +00:00
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. |
||
|---|---|---|
| .. | ||
| (auth) | ||
| (protected) | ||
| v | ||