From 63ace41e9746465500a4df2e4b81bd35b6431aaa Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Mon, 14 Jul 2008 19:20:56 +0000 Subject: [PATCH] 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. --- docs/changelog/7.x.x.txt | 1 + lib/WebGUI/Operation/ProfileSettings.pm | 1 + 2 files changed, 2 insertions(+) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 7c901fc49..1e0a262a3 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -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. diff --git a/lib/WebGUI/Operation/ProfileSettings.pm b/lib/WebGUI/Operation/ProfileSettings.pm index 3cefda478..04d9605de 100644 --- a/lib/WebGUI/Operation/ProfileSettings.pm +++ b/lib/WebGUI/Operation/ProfileSettings.pm @@ -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); }