CRM-20655, fixed notice error
authorPradeep Nayak <pradpnayak@gmail.com>
Mon, 29 May 2017 20:43:02 +0000 (02:13 +0530)
committerPradeep Nayak <pradpnayak@gmail.com>
Mon, 29 May 2017 20:43:02 +0000 (02:13 +0530)
----------------------------------------
* CRM-20655: Notice error on batch listing
  https://issues.civicrm.org/jira/browse/CRM-20655

CRM/Batch/BAO/Batch.php

index 39b402c14b2881fcc52ebc6948bc0b0f8e5911c2..2b5992561c08f9a8d774b335d66babec65c92a39 100644 (file)
@@ -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']);
       }