https://bugzilla.wikimedia.org/show_bug.cgi?id=5495

[email protected] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #11 from [email protected] 2011-08-18 14:38:29 UTC ---
In addition to the checkboxes under the user profile.

Where it shows the user his emailaddress (if using emailadres is enabled in the
settings), the email from the user record is shown. 

However, if I change some preferences and press 'save', the emailaddress of the
user is changed to an empty email (""). I don't see how any changes can be made
to this without adjusting the core mediawiki files.

What I see is that when the 'save' button is pressed, $formData['emailaddress']
is checked. Since this is not present in the POST data, the variable will be
NULL. The checks that follow are whether the variable is '' (which it is not)
and whether the old emailaddress equals the new emailaddress (also not). It
then defaults to set the new emailaddress, so the user his email is gone after
pressing the 'save' button. 

This was in a mode where the emailaddress field is merely viewable and not
editable.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to