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

@ -1,6 +1,7 @@
7.5.15
- fixed: Colorpicker window would not open (Martin Kamerbeek / Oqapi)
- fixed: Reverted change to RichEdit that caused IE6 to stop working
- fixed: Subscription: Price not displaying
7.5.14
- fixed: RSS feeds report modified date instead of create date

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

View file

@ -25,6 +25,7 @@ our $HELP = {
{ name => 'thankYouMessage', description=>'thank you message help' },
{ name => 'redeemCodeLabel' , required=>1 },
{ name => 'redeemCodeUrl' , required=>1 },
{ name => 'price' , required=>1 },
],
related => [
],

View file

@ -484,6 +484,12 @@ The form in which the user can enter his subscription code.<br />|,
context => q|template variable|
},
'price' => {
message => q|The price for the subscription, formatted to two decimal places|,
lastUpdated => 1214592963,
context => q|template variable|
},
};
1;