KamoCRM

Editing top-level lines no longer deletes every option's lines

Fixkamo-shared-library
Ya
26 Agosti 2026, 19:25 UTC
Mwandishi
Kamo
Ahadi ya
00e601b

Quote.lineItems is orphanRemoval=true and option rows set both quote and option — which is why QuoteMapper filters on getOption() == null twice. A bare clear() in replaceLineItems therefore orphan-removed every option's rows whenever a PATCH supplied lineItems without options. The QuoteOption shells survived, recalculate repriced them to zero, and a three-option quote silently became three zero-priced options at HTTP 200.

Mabadiliko yote

Je, unaona nini kuhusu usafiri?

Kila kitu kinaingia kwenye tovuti yako mwenyewe. Anza kwenye mpango wa bure na usome ukurasa huu tena katika mwezi mmoja.

Kuwa Huru MileleMtazamo wa bei