https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42611
--- Comment #1 from David Cook <[email protected]> --- Created attachment 199170 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=199170&action=edit Bug 42611: Fix Javascript error when no Circulation history This patch checks that "table" is defined before trying to access the DataTable object for it. This patch also moves the Javascript from the .tt file into a separate .js file since it doesn't need any Template::Toolkit itself. Test plan: 0. Apply the patch (and reset_all) 1. Log into the staff interface 2. Go to http://localhost:8081/cgi-bin/koha/members/readingrec.pl?borrowernumber=51 3. Open the console and see there is no longer a Javascript error 4. Check out an item like 39999000001310 to this user 5. Review the "Circulation history" and note that the DataTable appears and there are no Javascript errors -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] 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/
