From 58e48cc76e9f71d1599ccb08c3e15c3b074c5f56 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Fri, 9 Feb 2018 08:51:02 -0500 Subject: [PATCH] Bug 20157 [QA Followup] - Fix error triggered by subgroups being added to group --- Koha/Patron.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Koha/Patron.pm b/Koha/Patron.pm index e787bd0..c1951a5 100644 --- a/Koha/Patron.pm +++ b/Koha/Patron.pm @@ -793,7 +793,9 @@ sub libraries_where_can_see_patrons { } } - return sort(uniq(@restricted_branchcodes)); + @restricted_branchcodes = grep { defined $_ } @restricted_branchcodes; + @restricted_branchcodes = uniq(@restricted_branchcodes); + return sort (@restricted_branchcodes); } sub can { -- 2.10.2