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:
parent
3f3c78865a
commit
dc6ea8d5c9
|
|
@ -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 _ ")" %]
|
||||
|
|
|
|||
Loading…
Reference in New Issue