From 6a7fd3ecdc60b00252fa65cede5cde655312ec98 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 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The test should be on the existence of the item.branches method/attribute Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall (cherry picked from commit f38bcf5505e1196c3ae4d2e9d5df523bb07ef281) Signed-off-by: Frédéric Demians --- 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 580f38d36b..8b0c880779 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.11.4.GIT