Revert "Merge pull request #1544 from eileenmcnaughton/master"
[civicrm-core.git] / api / api.php
index 918e13a10fc8c310b869fdc285fef0194610b2f6..f42d5ac8da50991408164b80109849b1f177ad77 100644 (file)
@@ -43,7 +43,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' || strtolower($action) == 'submit') {
+    if (strtolower($action) == 'create' || strtolower($action) == 'delete') {
       $apiRequest['is_transactional'] = 1;
       $transaction = new CRM_Core_Transaction();
     }