[Koha-patches] [PATCH] Bug 4085 - Subscription type length wasn't taken into account

Frédéric Demians f.demians at tamil.fr
Mon Feb 1 16:22:14 CET 2010


---
 serials/subscription-add.pl |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/serials/subscription-add.pl b/serials/subscription-add.pl
index 6ee32f5..7fe93c8 100755
--- a/serials/subscription-add.pl
+++ b/serials/subscription-add.pl
@@ -158,9 +158,9 @@ if ($op eq 'addsubscription') {
     my $subtype         = $query->param('subtype');
     my $graceperiod     = $query->param('graceperiod') || 0;
 
-    if ($subtype eq 'months'){
+    if ($subtype eq 'monthlength'){
         $monthlength = $sublength;
-    } elsif ($subtype eq 'weeks'){
+    } elsif ($subtype eq 'weeklength'){
         $weeklength = $sublength;
     } else {
         $numberlength = $sublength;
@@ -238,9 +238,9 @@ if ($op eq 'addsubscription') {
     my $sublength = $query->param('sublength');
     my $subtype = $query->param('subtype');
 
-    if($subtype eq 'months'){
+    if($subtype eq 'monthlength'){
         $monthlength = $sublength;
-    } elsif ($subtype eq 'weeks'){
+    } elsif ($subtype eq 'weeklength'){
         $weeklength = $sublength;
     } else {
         $numberlength = $sublength;
-- 
1.6.4.3




More information about the Koha-patches mailing list