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 <jmf@liblime.com>
This commit is contained in:
Jesse Weaver 2008-07-15 11:10:39 -05:00 committed by Joshua Ferraro
parent 4e1cc6f14b
commit 0532b7deab
1 changed files with 2 additions and 2 deletions

View File

@ -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){