mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-18 21:16:47 +00:00
628f4e78cd
createItem never accepted weight_grams or bag_id — not in its signature, not in the INSERT — so cloneItem had nothing to pass on and every copy arrived empty. For a group trip that meant re-entering every weight by hand for each traveller, which is what people were doing. The bag needs more care than the weight. Bags belong to a trip, but they can be assigned to a person, so inheriting the original bag would drop your copy into somebody else luggage and inflate their total. A copy keeps the bag only when nobody owns it or when the copier is one of its members.