diff --git a/docs/changelog/6.x.x.txt b/docs/changelog/6.x.x.txt index a3eb306dd..0107ff973 100644 --- a/docs/changelog/6.x.x.txt +++ b/docs/changelog/6.x.x.txt @@ -30,6 +30,7 @@ - fix [ 1295718 ] Moderating submissions/posts is broken - fix [ 1288770 ] Couldn't call method www_view on asset - fix [ 1278672 ] Timezones does not still not work properly in webgui + - fix [ 1281347 ] double slash in URL (in style template WebGUI 6) 6.7.4 diff --git a/docs/upgrades/upgrade_6.7.4-6.7.5.pl b/docs/upgrades/upgrade_6.7.4-6.7.5.pl index a37b14957..7243dcfd6 100644 --- a/docs/upgrades/upgrade_6.7.4-6.7.5.pl +++ b/docs/upgrades/upgrade_6.7.4-6.7.5.pl @@ -13,6 +13,7 @@ my $quiet; start(); fixSurveyAnswerDefinition(); +fixTemplatesExtras(); finish(); @@ -24,6 +25,18 @@ sub fixSurveyAnswerDefinition { } +#------------------------------------------------- +sub fixTemplatesExtras { + print "\tFixing built-in templates with the Extras Macro.\n" unless ($quiet); + my @tmpls = WebGUI::SQL->buildArray("select distinct assetId from template"); + foreach my $id (@tmpls) { + my $asset = WebGUI::Asset->new($id,"WebGUI::Asset::Template"); + my $template = $asset->get("template"); + $template =~ s/\^Extras;\//^Extras;/ixsg; + $asset->addRevision({template=>$template})->commit; + } +} + #-------------------------------------------------