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

Smarty api: passing sequential=0 is ignored

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.2.6
    • Fix Version/s: 4.3.0
    • Component/s: CiviCRM API
    • Labels:
      None

      Description

      When using the api from Smarty passing sequential=0 is ignored.

      In Core\Smarty\plugins\function.crmAPI.php in smarty_function_crmAPI() change this:

      if (empty($params['sequential'])) {

      to

      if (!isset($params['sequential']))

      as empty() returns true for valid values 0 and "0".

        Attachments

          Activity

            People

            • Assignee:
              xavier xavier dutoit
              Reporter:
              chriscant Chris Cant
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1 hour
                1h
                Remaining:
                Remaining Estimate - 1 hour
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified