I have recently added this module and started to see this issue, it could be not related to User Protect, but I need to start somewhere.

Problem: As admin, I got to edit a newly added user and all the data if there, username, first and last name, but no email address is populated into the e-mail form field.

I checked the database, and happy to see that it is indeed saved in the user table. Just not loading in to the user edit form. Any ideas or test I could do to find where this trouble is originating - much thanks!

See image

CommentFileSizeAuthor
no-email.png65.82 KBgoose2000
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

goose2000 created an issue. See original summary.

MegaChriz’s picture

Category: Bug report » Support request
Status: Active » Fixed

I don't think userprotect has anything to do with it. Userprotect only disables fields, not emptying them.

To get a list of possible modules that are emptying the email field, search in the code for form_user_profile_form_alter or check it with the following code (this could for example be checked with the "Execute PHP Code" page from the devel module):

$modules = module_implements('form_user_profile_form_alter');
print_r($modules);

This will ask Drupal which modules are modifying the account edit form.

If this doesn't help, search instead for Implements hook_form_alter() or check it with the following code:

$modules = module_implements('form_alter');
print_r($modules);

This will ask Drupal which modules are modifying forms unspecific.

For both hooks, userprotect will be on the list.

Also check the form in an other browser, in case the browser tries to autofill fields or something.

I hope this helps you further. Reopen this issue if you find out that this issue has something to do with userprotect.

goose2000’s picture

that is very helpful - I agree, this is not caused by userprotect, see that now.

MegaChriz’s picture

Great I could be of help :)

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.