diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 29aa7ed4c..5662b7105 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -6,6 +6,8 @@ the web interface, but the package would be imported successfully. - fix: 7.5.0 upgrade template for time tracker was corrupt. - fix: replaced return; with return undef; and changed WGBP. + - removed old CS based photo gallery prototype in favor of the new gallery + asset 7.5.0 - rfe: Search Asset returns URLs diff --git a/docs/gotcha.txt b/docs/gotcha.txt index 3d5905ff6..b561b22f5 100644 --- a/docs/gotcha.txt +++ b/docs/gotcha.txt @@ -21,6 +21,10 @@ save you many hours of grief. details. Your custom Event Edit and Event View templates may need fixing. + * If you want to use the beta, you must first upgrade to 7.4.21 then + upgrade to the beta. If you upgrade past 7.4.21 then you cannot + use the beta. + 7.4.12 -------------------------------------------------------------------- * Any customizations made to the Matrix default Search, Compare or diff --git a/docs/upgrades/upgrade_7.5.0-7.5.1.pl b/docs/upgrades/upgrade_7.5.0-7.5.1.pl index 0d47257e5..116b9ae51 100644 --- a/docs/upgrades/upgrade_7.5.0-7.5.1.pl +++ b/docs/upgrades/upgrade_7.5.0-7.5.1.pl @@ -16,23 +16,24 @@ use WebGUI::Storage; use WebGUI::Asset; -my $toVersion = "0.0.0"; # make this match what version you're going to +my $toVersion = "7.5.1"; # make this match what version you're going to my $quiet; # this line required my $session = start(); # this line required - -# upgrade functions go here - +removeOldPhotoGallery($session); finish($session); # this line required -##------------------------------------------------- -#sub exampleFunction { -# my $session = shift; -# print "\tWe're doing some stuff here that you should know about.\n" unless ($quiet); -# # and here's our code -#} +#------------------------------------------------- +sub removeOldPhotoGallery { + my $session = shift; + print "\tRemoving CS Photo Gallery prototype.\n" unless ($quiet); + my $gallery = WebGUI::Asset->newByDynamicClass($session, "pbproto000000000000001"); + if (defined $gallery) { + $gallery->purge; + } +} # --------------- DO NOT EDIT BELOW THIS LINE --------------------------------