incorrect template variable in Mail Form

This commit is contained in:
Colin Kuskie 2005-12-12 05:31:57 +00:00
parent 1649ef4860
commit 38f07c010b
3 changed files with 18 additions and 0 deletions

View file

@ -3,6 +3,7 @@
- fix [ 1378493 ] 6.7.8 collab post edits (images) - fix [ 1378493 ] 6.7.8 collab post edits (images)
- Fixed bug where viewProfile did not show pretty printed values - Fixed bug where viewProfile did not show pretty printed values
- fix [ 1344146 ] deleting recurring events doesn't work - fix [ 1344146 ] deleting recurring events doesn't work
- fix [ 1378333 ] [WG 6.7.8] Mail Form template doesn't mark required fields
- fix [ 1377276 ] Calendar Pop up issue - fix [ 1377276 ] Calendar Pop up issue
- Fixed bug/rfe where it was not obvious when hovering over the rank - Fixed bug/rfe where it was not obvious when hovering over the rank
column in the Asset Manager that you can drag rows up and down. column in the Asset Manager that you can drag rows up and down.

View file

@ -13,6 +13,7 @@ use strict;
use Getopt::Long; use Getopt::Long;
use WebGUI::Session; use WebGUI::Session;
use WebGUI::SQL; use WebGUI::SQL;
use WebGUI::Asset;
my $toVersion = "6.8.2"; # make this match what version you're going to my $toVersion = "6.8.2"; # make this match what version you're going to
@ -22,6 +23,7 @@ my $quiet; # this line required
start(); # this line required start(); # this line required
fixPosts(); fixPosts();
fixDataFormMailForm();
finish(); # this line required finish(); # this line required
@ -32,6 +34,17 @@ sub fixPosts {
WebGUI::SQL->write("update Post set dateSubmitted=dateUpdated where dateSubmitted is null"); WebGUI::SQL->write("update Post set dateSubmitted=dateUpdated where dateSubmitted is null");
} }
#-------------------------------------------------
sub fixDataFormMailForm {
print "\tFix bad template variable in Mail Form.\n" unless ($quiet);
my $asset = WebGUI::Asset->new("PBtmpl0000000000000020","WebGUI::Asset::Template");
if (defined $asset) {
my $template = $asset->get("template");
$template =~ s/<tmpl_if field.required>/<tmpl_if field.isRequired>/g;
$asset->addRevision({template=>$template})->commit;
}
}
# ---- DO NOT EDIT BELOW THIS LINE ---- # ---- DO NOT EDIT BELOW THIS LINE ----

View file

@ -74,6 +74,10 @@ my @tmplVarTable = (
id => 'PBtmpl0000000000000014', id => 'PBtmpl0000000000000014',
vars => [ ], vars => [ ],
}, },
{
id => 'PBtmpl0000000000000020',
vars => [ qw(field.isRequired) ],
},
); );