numberingpattern was disimissed when editing a subscription

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
Henri-Damien LAURENT 2007-11-16 17:55:28 +01:00 committed by Joshua Ferraro
parent 2230456d46
commit eec6b41c3f
1 changed files with 2 additions and 8 deletions

View File

@ -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');