Make the user profile field property protected sticky. Even though it is not

set in the interface, the ProfileField package would reset it to 0 in its set
method if it was not passed in as a property.
This commit is contained in:
Colin Kuskie 2008-07-14 19:20:56 +00:00
parent 6af150aa5d
commit 63ace41e97
2 changed files with 2 additions and 0 deletions

View file

@ -6,6 +6,7 @@
- fixed: Deleting Ticket from Event Management System Asset
- fixed: Thingy Search Broken
- fixed: DataForm noloop template variables have incorrect values
- fixed: Alias field in user profiling
7.5.16
- Created a migration from 7.4.40 directly to 7.5.16.

View file

@ -369,6 +369,7 @@ sub www_editProfileFieldSave {
my $field = WebGUI::ProfileField->create($session,$session->form->text("fid"), \%data, $categoryId);
} else {
my $field = WebGUI::ProfileField->new($session, $session->form->process("fid"));
$data{protected} = $field->get('protected'); ##Protected is sticky and not in the UI.
$field->set(\%data);
$field->setCategory($categoryId);
}