diff --git a/docs/upgrades/upgrade_6.7.7-6.7.8.pl b/docs/upgrades/upgrade_6.7.7-6.7.8.pl index 00aed4782..667159b64 100644 --- a/docs/upgrades/upgrade_6.7.7-6.7.8.pl +++ b/docs/upgrades/upgrade_6.7.7-6.7.8.pl @@ -12,6 +12,7 @@ my $quiet; start(); protectUserProfileFields(); +correctEditProfileTemplate(); finish(); #------------------------------------------------- @@ -28,9 +29,20 @@ sub start { #------------------------------------------------- sub protectUserProfileFields { + print "\tProtecting all default user fields.\n" unless ($quiet); WebGUI::SQL->write("update userProfileField set protected=1 where fieldName in ('discussionLayout','INBOXNotifications','alias','signature','publicProfile','publicEmail','toolbar')"); } +#------------------------------------------------- +sub correctEditProfileTemplate { + print "\tFixing Edit Profile template.\n" unless ($quiet); + my $tmplAsset = WebGUI::Asset->newByDynamicClass("PBtmpl0000000000000051"); + my $template = $tmplAsset->get('template'); + $template =~ s/create.form.footer/profile.form.footer/; + $tmplAsset->addRevision({ template=>$template }); + $tmplAsset->commit; +} + #------------------------------------------------- sub finish { WebGUI::Session::close();