- fix [ 1281347 ] double slash in URL (in style template WebGUI 6)
This commit is contained in:
parent
5efbd4a709
commit
c3a962e64c
2 changed files with 14 additions and 0 deletions
|
|
@ -30,6 +30,7 @@
|
||||||
- fix [ 1295718 ] Moderating submissions/posts is broken
|
- fix [ 1295718 ] Moderating submissions/posts is broken
|
||||||
- fix [ 1288770 ] Couldn't call method www_view on asset
|
- fix [ 1288770 ] Couldn't call method www_view on asset
|
||||||
- fix [ 1278672 ] Timezones does not still not work properly in webgui
|
- 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
|
6.7.4
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,7 @@ my $quiet;
|
||||||
start();
|
start();
|
||||||
|
|
||||||
fixSurveyAnswerDefinition();
|
fixSurveyAnswerDefinition();
|
||||||
|
fixTemplatesExtras();
|
||||||
|
|
||||||
finish();
|
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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------
|
#-------------------------------------------------
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue