https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16115

--- Comment #5 from Jonathan Druart <jonathan.dru...@bugs.koha-community.org> 
---
Created attachment 59396
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59396&action=edit
Bug 16115: Remove JS error on item search if LOC does not exist

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 "Status" bloc is no longer
displayed. There is no need to display it if empty.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to