KamoCRM

Hold withTermsUnchanged to carrying every field

TestSecurityService
Shipped
2 செப்டம்பர், 2026 அன்று 4:56 PM UTC
Author
Kamo
Commit
0bd1b32

The method rebuilds UpdateQuoteRequest positionally, so a field added to that record and forgotten here is dropped from every save by a member without EDIT_QUOTE_TERMS — silently, at HTTP 200, with the editor re-rendering the stored blank as though the member had cleared it. setupFee hit exactly that. The test walks the record's components by reflection rather than naming them, so a component added tomorrow is covered without anyone remembering to come back here. Verified by reintroducing the bug: it fails with 'setupFee was dropped'.

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing