https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39916

--- Comment #16 from Martin Renvoize (ashimema) 
<martin.renvo...@openfifth.co.uk> ---
Created attachment 183210
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=183210&action=edit
Bug 39916: Fix race condition in booking modal edit mode

When editing an existing booking, the item type field was not being
populated because setFormValues() was triggering the wrong Select2 event.

The fix ensures both 'change' and 'select2:select' events are triggered
with proper data structure, allowing the item type to be automatically
populated based on the selected item's effective_item_type_id.

A small timeout prevents race conditions during DOM initialization.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to