]> git.koha-community.org Git - koha.git/commit
Bug 18047 - JavaScript error on item search form unless LOC defined
authorNick Clemens <nick@bywatersolutions.com>
Fri, 3 Feb 2017 11:38:53 +0000 (11:38 +0000)
committerKatrin Fischer <katrin.fischer.83@web.de>
Tue, 14 Feb 2017 21:26:18 +0000 (22:26 +0100)
commitb441c89f4f71bb6036dcb9d2ac5a4e24392714bc
tree8df0306d1dadb6204122fbad3db9cad1d07660c9
parent7e3ffc7f87b09c0b33c2f82ba04fee89e789c2d2
Bug 18047 - JavaScript error on item search form unless LOC defined

If LOC is not present, the item search form will raise a JS error:
SyntaxError: expected expression, got '}'

This patch fixes it by handling this specific case.

Note that the "Status" column is still displayed.

Test plan:
Remove your LOC authorised values
Go on the item search form
=> You will not get the JS error and the "Shelving location" bloc is no longer
displayed. There is no need to display it if empty.

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit da3ccdc14379816ea849eeb56ab321d8e7db59a2)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt