fix display bugs in the Subscription template (no price, and bare parens showing when no code batches are available)

This commit is contained in:
Colin Kuskie 2008-06-27 18:58:23 +00:00
parent 9e5642b9f6
commit 59424e1fe3
5 changed files with 9 additions and 0 deletions

View file

@ -509,6 +509,7 @@ sub view {
'<a href="'.$self->getUrl('func=listSubscriptionCodes') .'">'.$i18n->get('manage codes').'</a>',
'<a href="'.$self->getUrl('func=listSubscriptionCodeBatches') .'">'.$i18n->get('manage batches').'</a>',
)),
price => sprintf("%.2f", $self->getPrice),
);
my $hasCodes = $self->session->db->quickScalar('select count(*) from Subscription_code as t1, Subscription_codeBatch as t2 where t1.batchId = t2.batchId and t2.subscriptionId=?', [$self->getId]);
if ($hasCodes) {