fix for bug 2348: Cannot change patron category
authorJesse Weaver <jesse.weaver@liblime.com>
Tue, 15 Jul 2008 16:10:39 +0000 (11:10 -0500)
committerJoshua Ferraro <jmf@liblime.com>
Wed, 16 Jul 2008 23:26:13 +0000 (18:26 -0500)
This makes the code that generates the category code list loop through all six category types.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
members/memberentry.pl

index bf7379c..1cfedd8 100755 (executable)
@@ -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){