From 41d551ad27471b6b94ab837a93f6b37d939133fe Mon Sep 17 00:00:00 2001 From: eileen Date: Tue, 5 Mar 2013 12:57:36 +1300 Subject: [PATCH] CRM-12010 Drupal 7 create user class doesn't support multiple creates --- CRM/Utils/System/Drupal.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CRM/Utils/System/Drupal.php b/CRM/Utils/System/Drupal.php index 44adea35fb..29c51ba249 100644 --- a/CRM/Utils/System/Drupal.php +++ b/CRM/Utils/System/Drupal.php @@ -74,7 +74,12 @@ class CRM_Utils_System_Drupal extends CRM_Utils_System_Base { $form_state['programmed'] = TRUE; $form_state['method'] = 'post'; $form_state['build_info']['args'] = array(); - + /* + * if we want to submit this form more than once in a process (e.g. create more than one user) + * we must force it to validate each time for this form. Otherwise it will not validate + * subsequent submissions and the manner in which the password is passed in will be invalid + * */ + $form_state['must_validate'] = TRUE; $config = CRM_Core_Config::singleton(); // we also need to redirect b -- 2.25.1