Fix EMS Schdedule template bugs. Fixes bug #10988.

Give the EMS Schdule template its own namespace.  In the db,
remove usage of EMS template and EMS Schedule templates in the
wrong places.
This commit is contained in:
Colin Kuskie 2009-09-28 13:38:18 -07:00
parent e5ead13da3
commit 9a8b6d292e
5 changed files with 21 additions and 1 deletions

View file

@ -15,6 +15,7 @@
- fixed #11037: Maintenance page is being cached
- fixed #11056: No history in wiki
- added RFE #10940: Force the user to pick a shipping method before checking out.
- fixed #10988: EMS Schedule -- Data Error
7.8.0
- upgraded YUI to 2.8.0r4

View file

@ -7,6 +7,15 @@ upgrading from one version to the next, or even between multiple
versions. Be sure to heed the warnings contained herein as they will
save you many hours of grief.
7.8.1
--------------------------------------------------------------------
* The EventManagementSystem schedule template as accidently given
the same namespace as the main EMS template. This allowed the
wrong template to be chosen for the main EMS template and the
schedule template. The upgrade from 7.8.0 to 7.8.1 will attempt
to fix this when default templates have been used.
7.8.0
--------------------------------------------------------------------

View file

@ -31,6 +31,7 @@ my $quiet; # this line required
my $session = start(); # this line required
fixWikis( $session );
fixEMSTemplates( $session );
finish($session); # this line required
@ -53,6 +54,15 @@ sub fixWikis {
print "Done.\n" unless $quiet;
}
# Describe what our function does
sub fixEMSTemplates {
my $session = shift;
print "\tFixing bad usage of Event Management System templates... " unless $quiet;
$session->db->write(q|update EventManagementSystem set templateId='2rC4ErZ3c77OJzJm7O5s3w' where templateId='S2_LsvVa95OSqc66ITAoig'|);
$session->db->write(q|update EventManagementSystem set scheduleTemplateId='S2_LsvVa95OSqc66ITAoig' where scheduleTemplateId='2rC4ErZ3c77OJzJm7O5s3w'|);
print "Done.\n" unless $quiet;
}
# -------------- DO NOT EDIT BELOW THIS LINE --------------------------------

View file

@ -66,7 +66,7 @@ sub definition {
tab => 'display',
label => $i18n->get('schedule template'),
hoverHelp => $i18n->get('schedule template help'),
namespace => 'EMS',
namespace => 'EMS/Schedule',
},
scheduleColumnsPerPage => {
fieldType => 'Integer',