Preserving the meaning of an empty guest selection
On August 30, I completed a correction to reservation-group saving in RentFlow. The important distinction was between leaving a previous-guest value out of a request and deliberately sending an empty selection. Those actions can look similar after a convenient fallback, but they express different instructions about the relationship being edited.
An omitted value allows the save operation to use the guest already associated with the transaction as its previous value. An explicitly cleared value must remain cleared. Treating both cases as missing would restore information that the request had deliberately removed. The correction carries the presence of that field through the JavaScript payload and the database operation, instead of deciding only whether its value looks usable.
Compatibility mattered because the save path accepts the established forms of the field name. The regression cases cover omitted keys, explicit empty selections and supplied guest identifiers. They also distinguish an absent JavaScript value from an intentional null. Invalid blank identifiers are still rejected rather than quietly converted into a different instruction. The change therefore clarifies a specific edit without relaxing the surrounding validation.
The database correction preserves the existing financial calculations, invoice markers and occupant handling around the group save. It also retains the checks that keep an edit within its permitted organization. Local regression coverage and the merged change support those implementation claims. They do not establish that the migration was applied to production or that any real reservation was altered. No guest information or booking amounts are needed to explain the defect: it is about retaining the meaning of an edit throughout the save path.
Reflection
Empty and omitted are useful separate states. In RentFlow, preserving that distinction prevents a fallback from changing the user's instruction and keeps a small reservation edit from having a broader effect than intended.