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".