From a46732f84e4a5ad6bc9b2fdfb900cce63faac3d0 Mon Sep 17 00:00:00 2001 From: Pradeep Nayak Date: Tue, 30 May 2017 02:13:02 +0530 Subject: [PATCH] CRM-20655, fixed notice error ---------------------------------------- * CRM-20655: Notice error on batch listing https://issues.civicrm.org/jira/browse/CRM-20655 --- CRM/Batch/BAO/Batch.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Batch/BAO/Batch.php b/CRM/Batch/BAO/Batch.php index 39b402c14b..2b5992561c 100644 --- a/CRM/Batch/BAO/Batch.php +++ b/CRM/Batch/BAO/Batch.php @@ -200,7 +200,7 @@ class CRM_Batch_BAO_Batch extends CRM_Batch_DAO_Batch { $batch['total'] = ''; $batch['payment_instrument'] = $value['payment_instrument']; $batch['item_count'] = CRM_Utils_Array::value('item_count', $value); - $batch['type'] = $value['batch_type']; + $batch['type'] = CRM_Utils_Array::value('batch_type', $value); if (!empty($value['total'])) { $batch['total'] = CRM_Utils_Money::format($value['total']); } -- 2.25.1