Merge pull request #10364 from JMAConsulting/CRM-20588
authorcolemanw <coleman@civicrm.org>
Mon, 22 May 2017 14:52:11 +0000 (09:52 -0500)
committerGitHub <noreply@github.com>
Mon, 22 May 2017 14:52:11 +0000 (09:52 -0500)
CRM-20588, Add Pre and Post hook for Batch

1  2 
CRM/Batch/BAO/Batch.php
CRM/Financial/Form/FinancialBatch.php

Simple merge
index b150d03f7a74cf39ce292ff12b75eacf057a0b12,d1755ba36a96480dfae22342577e08bcc5bbcc3b..2e049f77b4bbadd8dafc2ef7dfb27040ee130259
@@@ -230,11 -226,8 +228,11 @@@ class CRM_Financial_Form_FinancialBatc
        $activityTypeName = 'Edit Batch';
      }
  
-     $batch = CRM_Batch_BAO_Batch::create($params, $ids, 'financialBatch');
+     $batch = CRM_Batch_BAO_Batch::create($params);
  
 +    //set batch id
 +    $this->_id = $batch->id;
 +
      $activityTypes = CRM_Core_PseudoConstant::activityType(TRUE, FALSE, FALSE, 'name');
  
      // create activity.