From 87613c4d997be05cf1b5e84b34c474e03d7fb1c2 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 7 Jul 2016 16:40:47 +0100 Subject: [PATCH] Bug 16857: Check on item.branches makes more sense The test should be on the existence of the item.branches method/attribute Signed-off-by: Jonathan Druart --- koha-tmpl/intranet-tmpl/prog/en/modules/admin/patron-attr-types.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/patron-attr-types.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/patron-attr-types.tt index 580f38d..8b0c880 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/patron-attr-types.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/patron-attr-types.tt @@ -267,7 +267,7 @@ $(document).ready(function() { [% item.code |html %] [% item.description %] - [% IF ( item.branches.size && item.branches.size > 0 ) %] + [% IF ( item.branches && item.branches.size > 0 ) %] [% branches_str = "" %] [% FOREACH branch IN item.branches %] [% branches_str = branches_str _ " " _ branch.branchname _ "(" _ branch.branchcode _ ")" %] -- 2.8.1