]> 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)
committerMason James <mtj@kohaaloha.com>
Wed, 22 Feb 2017 20:36:22 +0000 (09:36 +1300)
commit0b0e87a935b60e19d380ec383c7c6309f543247c
treefae4ef39739206f9038191614b6a0ebb8f2022df
parent208e72a16b8ee79f1da0f24fe0af4e070acf73af
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: Mason James <mtj@kohaaloha.com>
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt