From ff1fd3e1543bec127d36afd0d2254a908f5f17ed Mon Sep 17 00:00:00 2001 From: Pradeep Nayak Date: Tue, 23 May 2017 16:58:12 +0530 Subject: [PATCH] CRM-20620, fixed php error ---------------------------------------- * CRM-20620: Use batch api to retrieve all the batches https://issues.civicrm.org/jira/browse/CRM-20620 --- CRM/Batch/BAO/Batch.php | 1 + 1 file changed, 1 insertion(+) diff --git a/CRM/Batch/BAO/Batch.php b/CRM/Batch/BAO/Batch.php index f541d50d48..ce2ee177c9 100644 --- a/CRM/Batch/BAO/Batch.php +++ b/CRM/Batch/BAO/Batch.php @@ -284,6 +284,7 @@ class CRM_Batch_BAO_Batch extends CRM_Batch_DAO_Batch { ); $apiParams['return'] = $return; $batches = civicrm_api3('Batch', 'get', $apiParams); + $obj = new CRM_Batch_BAO_Batch(); if (!empty($params['context'])) { $links = $obj->links($params['context']); } -- 2.25.1