- Fixed a problem where profile data would be mixed between the current user

and the user your viewing the profile of.
This commit is contained in:
JT Smith 2005-12-16 17:33:48 +00:00
parent 6944fe3316
commit a16b470dd4
5 changed files with 13 additions and 11 deletions

View file

@ -164,7 +164,7 @@ sub www_viewProfile {
next if ($field->get("fieldName") eq "email" && !$u->profileField("publicEmail"));
push(@array, {
'profile.label' => $field->getLabel,
'profile.value' => $field->formField({dataDefault => $u->profileField($field->getId)},2)
'profile.value' => $field->formField(undef,2,$u)
});
}
}

View file

@ -279,9 +279,7 @@ sub www_editUser {
foreach my $field (@{$category->getFields}) {
next if $field->getId =~ /contentPositions/;
my $label = $field->getLabel . ($field->isRequired ? "*" : '');
# hack to get op=editUser to display the correct stuff.
$session{form}{$field->getId} = $u->profileField($field->getId);
$tabform->getTab("profile")->raw($field->formField({label=>$label},1));
$tabform->getTab("profile")->raw($field->formField({label=>$label},1,$u));
}
}
my @groupsToAdd = WebGUI::FormProcessor::group("groupsToAdd");