Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-14657

is_transactional is inconsistent in api

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.4.5
    • Fix Version/s: 4.2.16, 4.4.6, 4.5
    • Component/s: None
    • Labels:
      None

      Description

      Is transationional is in civicrm_api() in 4.4., but it was a little wonky (ie you could opt-in but never opt-out, and it wasn't prefixed with "options"). Since it turns out the post process hook rolls back this is really important to be able to turn off.

      Tim suggests : To patch 4.5's TransactionSubscriber, we could insert something like this:

      ---------------------
      public function isTransactional($apiProvider, $apiRequest) {
      if (isset($apiRequest['params']['is_transactional']))

      { return $apiRequest['params']['is_transactional']; }

      return strtolower($apiRequest['action']) == 'create' || strtolower($apiRequest['action']) == 'delete' || strtolower($apiRequest['action']) == 'submit';
      }

        Attachments

          Activity

            People

            • Assignee:
              timotten Tim Otten
              Reporter:
              eileen Eileen McNaughton
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: