From bc79041619368eda4d179c111b9a38374b19a23e Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Wed, 7 May 2014 18:30:56 +1200 Subject: [PATCH] CRM-14657 - is_transactiona is inconsistent in api --- api/api.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/api/api.php b/api/api.php index 959b7994f1..357561cd37 100644 --- a/api/api.php +++ b/api/api.php @@ -47,9 +47,10 @@ 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' || strtolower($action) == 'submit') { - $apiRequest['is_transactional'] = 1; - $transaction = new CRM_Core_Transaction(); + if ((strtolower($action) == 'create' || strtolower($action) == 'delete' || strtolower($action) == 'submit') + && (!isset($params['is_transactional']) || $params['is_transactional'])) { + $apiRequest['is_transactional'] = 1; + $transaction = new CRM_Core_Transaction(); } // support multi-lingual requests -- 2.25.1