Make the Redeem Subscription code template user selectable in the Subscription Asset.

Add Help, i18n for that template.
This commit is contained in:
Colin Kuskie 2008-12-29 17:31:36 +00:00
parent 81c9d117e5
commit 47eb1998dd
5 changed files with 68 additions and 17 deletions

View file

@ -13,6 +13,7 @@
- fixed #9368: Gallery: All children included into navigation
- fixed #9349: CS archival broken after update (Bernd Kalbfuß-Zimmermann)
- fixed Display of Interval form control in Thingy and User profiling did not show units, only seconds.
- fixed #9374: Subscription Asset: Redeem subscription template not documented, or user selectable
7.6.7
- fixed #9263: Thingy possibleValues processing, and List type autodetection.

View file

@ -34,6 +34,7 @@ my $session = start(); # this line required
# upgrade functions go here
setDefaultItransactCredentialTemplate($session);
hideGalleryPhotos($session);
addSubscriptionRedeemTemplateSetting($session);
finish($session); # this line required
@ -58,6 +59,18 @@ sub setDefaultItransactCredentialTemplate {
print "DONE!\n" unless $quiet;
}
#----------------------------------------------------------------------------
# Describe what our function does
sub addSubscriptionRedeemTemplateSetting {
my $session = shift;
print "\tAdd a field to the Subscription Asset so the user can select which Redeem Subscription code template to use... " unless $quiet;
# and here's our code
$session->db->write(<<EOSQL);
alter table Subscription add column redeemSubscriptionCodeTemplateId char(22) NOT NULL default ''
EOSQL
print "DONE!\n" unless $quiet;
}
#----------------------------------------------------------------------------
# Describe what our function does
sub hideGalleryPhotos {