diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 91655adc0..84239bb39 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -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 diff --git a/docs/upgrades/upgrade_7.5.13-7.5.14.pl b/docs/upgrades/upgrade_7.5.13-7.5.14.pl index 2d82a4d56..10f62b7e9 100644 --- a/docs/upgrades/upgrade_7.5.13-7.5.14.pl +++ b/docs/upgrades/upgrade_7.5.13-7.5.14.pl @@ -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 --------------------------------