]> git.koha-community.org Git - koha.git/commit
Bug 16115: Remove JS error on item search if NOT_LOAN values do not exist
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Sat, 21 Jan 2017 07:48:20 +0000 (08:48 +0100)
committerKyle M Hall <kyle@bywatersolutions.com>
Tue, 14 Feb 2017 13:46:48 +0000 (13:46 +0000)
commit27a4149625252e4c28dc97df998d82fd6f2652b8
treea92e9e730f21b1ad6bdbca4022dadbf86d14e142
parent6ce97d9b06843fa65d6fb4a6d7c8cecd322bc8d6
Bug 16115: Remove JS error on item search if NOT_LOAN values do not exist

If NOT_LOAN 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 NOT_LOAN authorised values
Go on the item search form
=> You will not get the JS error and the "Status" bloc is no longer
displayed. There is no need to display it if empty.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt