Allow profile fields to be emptied. Fixes bug #10913.
This commit is contained in:
parent
b57dff3e3e
commit
5ee64a57d3
2 changed files with 2 additions and 1 deletions
|
|
@ -35,6 +35,7 @@
|
||||||
- fixed #10955: Story Manager: unable to import packages
|
- fixed #10955: Story Manager: unable to import packages
|
||||||
- fixed #10970: Newsletter Asset: no subscribe link
|
- fixed #10970: Newsletter Asset: no subscribe link
|
||||||
- fixed #10953: SendNewsletters Activity: Invalid template variable
|
- fixed #10953: SendNewsletters Activity: Invalid template variable
|
||||||
|
- fixed #10913: User profiles: Impossible to delete field contents
|
||||||
|
|
||||||
7.7.19
|
7.7.19
|
||||||
- fixed #10838: Forwarded forum post email to new CS adds reply to original thread
|
- fixed #10838: Forwarded forum post email to new CS adds reply to original thread
|
||||||
|
|
|
||||||
|
|
@ -432,8 +432,8 @@ sub www_editSave {
|
||||||
unless(scalar(@{$retHash->{errors}})) {
|
unless(scalar(@{$retHash->{errors}})) {
|
||||||
my $profile = $retHash->{profile};
|
my $profile = $retHash->{profile};
|
||||||
my $privacy = {};
|
my $privacy = {};
|
||||||
|
$session->user->update($profile);
|
||||||
foreach my $fieldName (keys %{$profile}) {
|
foreach my $fieldName (keys %{$profile}) {
|
||||||
$session->user->profileField($fieldName,$profile->{$fieldName});
|
|
||||||
my $privacySetting = $session->form->get("privacy_".$fieldName);
|
my $privacySetting = $session->form->get("privacy_".$fieldName);
|
||||||
next unless $privacySetting;
|
next unless $privacySetting;
|
||||||
$privacy->{$fieldName} = $privacySetting;
|
$privacy->{$fieldName} = $privacySetting;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue