numberingpattern was disimissed when editing a subscription
authorHenri-Damien LAURENT <henridamien@koha-fr.org>
Fri, 16 Nov 2007 16:55:28 +0000 (17:55 +0100)
committerJoshua Ferraro <jmf@liblime.com>
Tue, 20 Nov 2007 22:09:50 +0000 (16:09 -0600)
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
serials/subscription-add.pl

index f9e5e46..2388e97 100755 (executable)
@@ -150,18 +150,12 @@ if ($op eq 'mod'||$op eq 'dup') {
             );
     $template->param(
                 "periodicity".$subs->{'periodicity'} => 1,
-                "dow".$subs->{'periodicity'} => 1,
-                "numberpattern".$subs->{'periodicity'} => 1,
+                "dow".$subs->{'dow'} => 1,
+                "numberpattern".$subs->{'numberpattern'} => 1,
                 );
 }
 
 if ($op eq 'addsubscription') {
-    my @irregular = $query->param('irregular');
-    my $irregular_count = scalar(@irregular);
-    for(my $i =0;$i<$irregular_count;$i++){
-        $irregularity .=$irregular[$i].",";
-    }
-    $irregularity =~ s/\,$//;
 
     my $auser = $query->param('user');
     my $branchcode = $query->param('branchcode');