Koha/koha-tmpl/intranet-tmpl/prog/en
Owen Leonard f6a0eb3a2a
Bug 30693: Javascript broken on request.pl
The holds page in the staff interface has some JavaScript relating to
Bootstrap tabs, but the tabs are not always present on the page. This
leads to a JS error after you have selected the patron for the hold.

This patch adds a check for the tabs container element before executing
the code.

To test, apply the patch and locate a bibliographic record on which to
place a hold.

- On the initial holds screen should see tabs for "Patrons" and "Clubs."
  Both should work correctly.
- Select a patron to place the hold for.
- On the page where you enter hold details (pickup library, hold
  expiration, etc.) there should be no JavaScript error in the console.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2022-05-05 16:10:38 +01:00
..
data
includes Bug 28138: (follow-up) Add empty option to payment type selection 2022-05-04 14:29:23 -10:00
modules Bug 30693: Javascript broken on request.pl 2022-05-05 16:10:38 +01:00
xslt Bug 11083: Add sample XSLT for UNIMARC authorities 2022-04-08 15:49:15 +02:00