fixed a problem with op=editUser where it would use profile field values of the current user.

This commit is contained in:
Matthew Wilson 2005-12-14 02:56:03 +00:00
parent a5724e913c
commit ab9207268f

View file

@ -279,6 +279,8 @@ 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));
}
}