(bug #3791) overduerules and numeric categorycodes

this fix overduesrules.pl when library have numeric category codes.
This commit is contained in:
Nahuel ANGELINETTI 2009-11-18 10:02:40 +01:00 committed by Henri-Damien LAURENT
parent 37e7d9664e
commit e1c2f85c2c
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ if ($op eq 'save') {
my $sth_delete=$dbh->prepare("DELETE FROM overduerules WHERE branchcode=? AND categorycode=?");
foreach my $key (@names){
# ISSUES
if ($key =~ /(.*)([1-3])-(.*)/) {
if ($key =~ /(delay|letter)([1-3])-(.*)/) {
my $type = $1; # data type
my $num = $2; # From 1 to 3
my $bor = $3; # borrower category