Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Important
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.7.21, 4.7.20
-
Fix Version/s: 4.7.22
-
Component/s: None
-
Labels:
-
Versioning Impact:Patch (backwards-compatible bug fixes)
-
Documentation Required?:None
-
Funding Source:Needs Funding
-
Verified?:No
-
Overview:Having a Profile on a Contribution page (and possibly others) where a Drupal User is created results in 'email is required' message after the form is submitted, with no option to add the email since the form has gone.
-
How it works currently:
-
How it should work:CMS user should be created that is linked to the contact that has been created
-
Acceptance Criteria:CMS user is created and is linked to the contact that has been created
Description
Did #15067 break stuff?
I noticed this problem in 4.7.21 but found it also on a 4.7.20 triage site that totten set up
http://triage-170707-1.test-ubu1204-5.civicrm.org/
STEPS TO REPLICATE
Set /civicrm/admin/uf/group/update?action=update&id=2&context=group to 'Account creation required"
Add that profile to civicrm/admin/contribute/custom?reset=1&action=update&id=1
(optional) Set to Pay Later (for ease)
Fill in and submit form
OUTCOME
Notice: Undefined index: email-5 in CRM_Utils_System_Drupal->createUser() (line 47 of /home/jenkins/buildkit/build/triage-170707-1/sites/all/modules/civicrm/CRM/Utils/System/Drupal.php).
E-mail address field is required.
And on my sites and dmaster and http://triage-170707-1.test-ubu1204-5.civicrm.org/ the contact and contribution get created but the DRUPAL USER doesn't because it prsumably isn't getting the email address which is kind of fundamental isn't it?
This also affects Joomla! in the same way. Users are bumped back to home page of site without any warning.