Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-14121

CRM_Utils_System_Drupal::createUser does not user Drupal's form_state_defaults()

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.4.3
    • Fix Version/s: 4.4.4
    • 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.

        Attachments

          Activity

            People

            • Assignee:
              colemanw Coleman Watts
              Reporter:
              bwilhelm Ben Wilhelm
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: