- Converted all the max((assetData.)revisionDate) calls to use mysql5/(4.1)
nested queries. - fix [ 1323184 ] CS Submissions Not Sorting on multiple sites - fixed some major oversights in the new profile system.
This commit is contained in:
parent
d8cea7a566
commit
f5f73c1681
16 changed files with 61 additions and 42 deletions
|
|
@ -76,7 +76,13 @@ sub validateProfileData {
|
|||
my $error = "";
|
||||
my $warning = "";
|
||||
foreach my $field (@{WebGUI::ProfileField->getEditableFields}) {
|
||||
$data{$field->getId} = $field->formProcess;
|
||||
my $fieldValue = $field->formProcess;
|
||||
use Data::Dumper;print $field->getLabel.' : '.Dumper($fieldValue);
|
||||
if (ref $fieldValue eq "ARRAY") {
|
||||
$data{$field->getId} = $$fieldValue[0];
|
||||
} else {
|
||||
$data{$field->getId} = $fieldValue;
|
||||
}
|
||||
if ($field->isRequired && !$data{$field->getId}) {
|
||||
$error .= '<li>'.$field->getLabel.' '.WebGUI::International::get(451).'</li>';
|
||||
} elsif ($field->getId eq "email" && isDuplicateEmail($data{$field->getId})) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue