- 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:
parent
6944fe3316
commit
a16b470dd4
5 changed files with 13 additions and 11 deletions
|
|
@ -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)
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue