From 95b103fad21411ff437334eaa75942aac4118c7a Mon Sep 17 00:00:00 2001 From: eileen Date: Mon, 4 Mar 2013 23:17:43 +1300 Subject: [PATCH 1/2] 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 44adea35fb24..29c51ba2496a 100644 --- a/CRM/Utils/System/Drupal.php +++ b/CRM/Utils/System/Drupal.php @@ -74,7 +74,12 @@ function createUser(&$params, $mail) { $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 From 495cf9439bfa4b7acd25e24a2ee2a33ff359325c Mon Sep 17 00:00:00 2001 From: eileen Date: Mon, 4 Mar 2013 23:29:13 +1300 Subject: [PATCH 2/2] ignore eclipse files --- .gitignore | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 194ac8e4e688..e5a466b2d39d 100644 --- a/.gitignore +++ b/.gitignore @@ -140,4 +140,7 @@ tests/phpunit/CiviTest/civicrm.settings.local.php l10n vendor civicrm.settings.php -sql/dummy_processor.mysql \ No newline at end of file +sql/dummy_processor.mysql +.buildpath +.project +.settings \ No newline at end of file