[Koha-patches] [PATCH] (bug #3791) overduerules and numeric categorycodes

Nahuel ANGELINETTI nahuel.angelinetti at biblibre.com
Wed Nov 18 10:06:11 CET 2009


this fix overduesrules.pl when library have numeric category codes.
---
 tools/overduerules.pl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tools/overduerules.pl b/tools/overduerules.pl
index a7d6510..61c05b6 100755
--- a/tools/overduerules.pl
+++ b/tools/overduerules.pl
@@ -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
-- 
1.6.3.3




More information about the Koha-patches mailing list