fixing someone's misuse of Macro::negate.
This commit is contained in:
parent
dce2c3c62f
commit
43ba1480c1
1 changed files with 4 additions and 2 deletions
|
|
@ -118,8 +118,10 @@ sub validateProfileData {
|
|||
$a = WebGUI::SQL->read("select * from userProfileField,userProfileCategory where userProfileField.profileCategoryId=userProfileCategory.profileCategoryId
|
||||
and userProfileCategory.editable=1 and userProfileField.editable=1 order by userProfileCategory.sequenceNumber,userProfileField.sequenceNumber");
|
||||
while (%field = $a->hash) {
|
||||
$data{$field{fieldName}} = WebGUI::Macro::negate(WebGUI::FormProcessor::process($field{fieldName},$field{dataType}, $field{dataDefault}));
|
||||
if ($field{required} && $data{$field{fieldName}} eq "") {
|
||||
my $holder = WebGUI::FormProcessor::process($field{fieldName},$field{dataType}, $field{dataDefault});
|
||||
WebGUI::Macro::negate(\$holder);
|
||||
$data{$field{fieldName}} = $holder;
|
||||
if ($field{required} && !($data{$field{fieldName}})) {
|
||||
$error .= '<li>'.(WebGUI::Operation::Shared::secureEval($field{fieldLabel})).' '.WebGUI::International::get(451).'</li>';
|
||||
}
|
||||
elsif($field{fieldName} eq "email" && isDuplicateEmail($data{$field{fieldName}})){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue