Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Minor
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.4.3
-
Fix Version/s: 4.4.4
-
Component/s: Drupal Integration Modules
-
Labels:None
Description
Drupal 7.26 fixed some security issues and introduced the function form_state_defaults, which assigns defaults to the $form_state variable. CRM_Utils_System_Drupal::createUser creates the $form_state as an empty array instead of using said defaults. This triggers 'Undefined Index' notices in Drupal's function _form_builder_handle_input_element (and possibly elsewhere), when creating a new Drupal user from Civi.
Proposed fix attached.