remove the bad Shop/ReceiptEmail template
This commit is contained in:
parent
2880a392f4
commit
1c72108080
2 changed files with 12 additions and 0 deletions
|
|
@ -14,6 +14,7 @@
|
|||
- fixed: UserList wobject not in new content menu (Yung Han Khoe)
|
||||
- fixed: Default Product template does not show an "out of stock" message
|
||||
when there are no available variants.
|
||||
- fixed: "Permission Denied" when editing Shelf Template
|
||||
|
||||
7.5.13
|
||||
- fixed: storage locations for some assets in packages not imported correctly
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@ my $quiet; # this line required
|
|||
my $session = start(); # this line required
|
||||
|
||||
# upgrade functions go here
|
||||
deleteBadReceiptEmailTemplate($session);
|
||||
|
||||
finish($session); # this line required
|
||||
|
||||
|
|
@ -42,6 +43,16 @@ finish($session); # this line required
|
|||
# print "DONE!\n" unless $quiet;
|
||||
#}
|
||||
|
||||
sub deleteBadReceiptEmailTemplate {
|
||||
my $session = shift;
|
||||
print "\tDeleting bad Shop Email Receipt template... " unless $quiet;
|
||||
my $badTemplate = WebGUI::Asset->newByDynamicClass($session, 'BMzuE91-XB8E-XGll1zpvA');
|
||||
if (defined $badTemplate) {
|
||||
$badTemplate->purge;
|
||||
}
|
||||
print "DONE!\n" unless $quiet;
|
||||
}
|
||||
|
||||
|
||||
# -------------- DO NOT EDIT BELOW THIS LINE --------------------------------
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue