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:
parent
e5ead13da3
commit
9a8b6d292e
5 changed files with 21 additions and 1 deletions
Binary file not shown.
|
|
@ -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 --------------------------------
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue