]> 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)
committerJulian Maurice <julian.maurice@biblibre.com>
Mon, 20 Feb 2017 10:01:48 +0000 (11:01 +0100)
commitfc63527b2f01357a80198808b2b081b6fce4e58a
tree23ce8d2700c6836150921c5f0860866843aec4b3
parent53c42f32e1badae8bf93cf3c3f95f40ab4a114b6
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>
(cherry picked from commit b441c89f4f71bb6036dcb9d2ac5a4e24392714bc)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt