https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41898
--- Comment #44 from Martin Renvoize (ashimema) <[email protected]> --- Created attachment 205884 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=205884&action=edit Bug 41898: (follow-up) Guard bookings.js against missing DOM when patron has no bookings js/tables/bookings.js unconditionally called AdditionalFilters.init() for 'filter-completed' and 'filter-cancelled' on every page load where the script is included. patron-detail-tabs.inc only renders those filter elements (and #bookings_table itself) when the patron has at least one booking, past or present. For any patron with no booking history, this produced two console.debug 'Element not found' messages on moremember.pl and circ/circulation.pl. Guard the ready handler on the presence of #bookings_table, mirroring the existing pattern in holds.js. Test plan: 1) Open moremember.pl for a patron with no bookings; confirm no AdditionalFilters console messages appear. 2) Open moremember.pl / circ/circulation.pl for a patron with bookings; confirm the Bookings tab, filters, and table still work as before. Co-Authored-By: Claude Sonnet 5 <[email protected]> -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected] website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
