Fixed some bugs in the profile setting stuff

This commit is contained in:
Martin Kamerbeek 2006-05-03 15:08:55 +00:00
parent 12c10d56fe
commit c98308af17
2 changed files with 4 additions and 2 deletions

View file

@ -334,9 +334,8 @@ sub www_editProfileFieldSave {
my $categoryId = $session->form->selectBox("profileCategoryId");
if ($session->form->process("new")) {
my $field = WebGUI::ProfileField->create($session,$session->form->text("fid"), \%data, $categoryId);
$session->stow->set("editSavedFid",$field->getId);
} else {
my $field = WebGUI::ProfileField->new($session,$session->stow->get("editSavedFid"));
my $field = WebGUI::ProfileField->new($session, $session->form->process("fid"));
$field->set(\%data);
$field->setCategory($categoryId);
}