CRM-13234 make profile.submit transactional
authoreileen <eileen@fuzion.co.nz>
Fri, 30 Aug 2013 02:20:33 +0000 (14:20 +1200)
committereileen <eileen@fuzion.co.nz>
Tue, 3 Sep 2013 23:00:06 +0000 (11:00 +1200)
api/api.php

index e2a366c06b7f4102632b6fd595a131179d85ca85..bd6cec73483f2cb45a145103ca59854f25e54dbe 100644 (file)
@@ -44,7 +44,7 @@ function civicrm_api($entity, $action, $params, $extra = NULL) {
     $errorScope = CRM_Core_TemporaryErrorScope::useException();
     // look up function, file, is_generic
     $apiRequest += _civicrm_api_resolve($apiRequest);
-    if (strtolower($action) == 'create' || strtolower($action) == 'delete') {
+    if (strtolower($action) == 'create' || strtolower($action) == 'delete' || strtolower($action) == 'submit') {
       $apiRequest['is_transactional'] = 1;
       $transaction = new CRM_Core_Transaction();
     }