---
 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

_______________________________________________
Koha-patches mailing list
Koha-patches@lists.koha.org
http://lists.koha.org/mailman/listinfo/koha-patches

Reply via email to