From ab9207268f8fe117a698b87451fd2c01abd13658 Mon Sep 17 00:00:00 2001 From: Matthew Wilson Date: Wed, 14 Dec 2005 02:56:03 +0000 Subject: [PATCH] fixed a problem with op=editUser where it would use profile field values of the current user. --- lib/WebGUI/Operation/User.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/WebGUI/Operation/User.pm b/lib/WebGUI/Operation/User.pm index 5b07b4cf3..746ea3207 100644 --- a/lib/WebGUI/Operation/User.pm +++ b/lib/WebGUI/Operation/User.pm @@ -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)); } }