Bug 16857 - patron-attr-types.tt: Get rid of warnings "Argument "" isn't numeric"

To vrify:
- Go to Home > Administration > Patron attribute types
- Make sure you have some patron attribute types with no branches limitation
- For each attribute type you get a warning in intranet-error.log:
patron-attr-types.pl: Argument "" isn't numeric in numeric gt (>) at (...)/koha-tmpl/intranet-tmpl/prog/en/modules/admin/patron-attr-types.tt line 284.

To test:
- Appy patch
- Verify that warnings no longer appear in intranet-error.log

Signed-off-by: Srdjan <srdjan@catalyst.net.nz>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit abb7980004)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
This commit is contained in:
Marc Véron 2016-07-04 11:37:33 +02:00 committed by Frédéric Demians
parent 3f3c78865a
commit dc6ea8d5c9
1 changed files with 1 additions and 1 deletions

View File

@ -267,7 +267,7 @@ $(document).ready(function() {
<td>[% item.code |html %]</td>
<td>[% item.description %]</td>
<td>
[% IF item.branches.size > 0 %]
[% IF ( item.branches.size && item.branches.size > 0 ) %]
[% branches_str = "" %]
[% FOREACH branch IN item.branches %]
[% branches_str = branches_str _ " " _ branch.branchname _ "(" _ branch.branchcode _ ")" %]