fixed a problem with op=editUser where it would use profile field values of the current user.
This commit is contained in:
parent
a5724e913c
commit
ab9207268f
1 changed files with 2 additions and 0 deletions
|
|
@ -279,6 +279,8 @@ sub www_editUser {
|
||||||
foreach my $field (@{$category->getFields}) {
|
foreach my $field (@{$category->getFields}) {
|
||||||
next if $field->getId =~ /contentPositions/;
|
next if $field->getId =~ /contentPositions/;
|
||||||
my $label = $field->getLabel . ($field->isRequired ? "*" : '');
|
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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue