Fixing up the displaying of create vs edit routing list button

This commit is contained in:
bob_lyon 2007-02-11 20:44:31 +00:00
parent 33d7e61f09
commit 5376484c08
1 changed files with 2 additions and 0 deletions

View File

@ -108,6 +108,7 @@ if ($op eq 'del') {
}
my $subs = &getsubscription($subscriptionid);
my ($routing, @routinglist) = getroutinglist($subscriptionid);
my ($totalissues,@serialslist) = getserials($subscriptionid);
$totalissues-- if $totalissues; # the -1 is to have 0 if this is a new subscription (only 1 issue)
# the subscription must be deletable if there is NO issues for a reason or another (should not happend, but...)
@ -151,6 +152,7 @@ $template->param(
totalissues => $totalissues,
weekarrayjs => $weekarrayjs,
hemisphere => $hemisphere,
routing => $routing,
);
$template->param(
"numberpattern$subs->{numberpattern}" => 1,