From: Jesse Weaver Date: Tue, 15 Jul 2008 16:10:39 +0000 (-0500) Subject: fix for bug 2348: Cannot change patron category X-Git-Tag: v3.00.00~207 X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=commitdiff_plain;ds=sidebyside;h=0532b7deabb20483526e989b1f2e2a70052e893b;p=koha-ffzg.git fix for bug 2348: Cannot change patron category This makes the code that generates the category code list loop through all six category types. Signed-off-by: Joshua Ferraro --- diff --git a/members/memberentry.pl b/members/memberentry.pl index bf7379c8db..1cfedd8e32 100755 --- a/members/memberentry.pl +++ b/members/memberentry.pl @@ -350,8 +350,8 @@ if ($ethnicitycategoriescount>=0) { } my @typeloop; -foreach ( ($category_type) ? ($category_type) : qw(C A S P I X)){ - my $action="WHERE category_type=?"; +foreach (qw(C A S P I X)) { + my $action="WHERE category_type=?"; ($categories,$labels)=GetborCatFromCatType($_,$action); my @categoryloop; foreach my $cat (@$categories){