From f0672563cbc6dae168d7a339817911fe25f66b09 Mon Sep 17 00:00:00 2001 From: Eileen Date: Tue, 17 Sep 2013 00:07:59 +1200 Subject: [PATCH] CRM-13402 error handling in profile_form - record transaction rollback in log file ---------------------------------------- * CRM-13402: Improve debug logging around server unavailble (ditch the loop), missing contributions, mail store problems http://issues.civicrm.org/jira/browse/CRM-13402 --- CRM/Profile/Form.php | 1 + 1 file changed, 1 insertion(+) diff --git a/CRM/Profile/Form.php b/CRM/Profile/Form.php index 4a083cc8c5..bd61ff6005 100644 --- a/CRM/Profile/Form.php +++ b/CRM/Profile/Form.php @@ -1317,6 +1317,7 @@ class CRM_Profile_Form extends CRM_Core_Form { $params['contactID'] = $this->_id; if (!CRM_Core_BAO_CMSUser::create($params, $this->_mail)) { CRM_Core_Session::setStatus(ts('Your profile is not saved and Account is not created.'), ts('Profile Error'), 'error'); + CRM_Core_Error::debug_log_message("Rolling back transaction as CMSUser Create failed in Profile_Form for contact " . $params['contactID']); $transaction->rollback(); $transaction->rollback(); return CRM_Utils_System::redirect(CRM_Utils_System::url('civicrm/profile/create', 'reset=1&gid=' . $this->_gid -- 2.25.1