fixed wrong PseudoConstant call
authorkurund <kurund@civicrm.org>
Fri, 2 Aug 2013 21:42:13 +0000 (03:12 +0530)
committerkurund <kurund@civicrm.org>
Fri, 2 Aug 2013 21:42:13 +0000 (03:12 +0530)
CRM/Batch/BAO/Batch.php
CRM/Financial/Form/FinancialBatch.php
CRM/Financial/Page/AJAX.php

index 040794be27f2f68256f1db5c24f90c70aade1e47..884bb7ea46b4d16c3bbe805821768ec01214b7a1 100644 (file)
@@ -596,7 +596,7 @@ class CRM_Batch_BAO_Batch extends CRM_Batch_DAO_Batch {
   }
 
   static function closeReOpen($batchIds = array(), $status) {
-    $batchStatus = CRM_Core_PseudoConstant::get('CRM_Financial_DAO_FinancialItem', 'status_id');
+    $batchStatus = CRM_Core_PseudoConstant::get('CRM_Batch_DAO_Batch', 'status_id');
     $params['status_id'] = CRM_Utils_Array::key( $status, $batchStatus );
     $session = CRM_Core_Session::singleton( );
     $params['modified_date'] = date('YmdHis');
index d1e729989aec717f725af2557c722230b8944d1e..f4bd4381c0aef2ff37a92bbca4b7afe125dfa687 100644 (file)
@@ -121,7 +121,7 @@ class CRM_Financial_Form_FinancialBatch extends CRM_Contribute_Form {
     );
 
     if ($this->_action & CRM_Core_Action::UPDATE && $this->_id) {
-      $batchStatus = CRM_Core_PseudoConstant::get('CRM_Financial_DAO_FinancialItem', 'status_id');
+      $batchStatus = CRM_Core_PseudoConstant::get('CRM_Batch_DAO_Batch', 'status_id');
 
       //unset exported status
       $exportedStatusId = CRM_Utils_Array::key('Exported', $batchStatus );
index 35ac51084c0201504e6fb4c95a3e289d59d40e6d..b4a773810d93b8e929b96ff3185ec00e2f6323b0 100644 (file)
@@ -216,7 +216,7 @@ class CRM_Financial_Page_AJAX {
           case 'reopen':
             $status = $op == 'close' ? 'Closed' : 'Open';
             $ids['batchID'] = $recordID;
-            $batchStatus = CRM_Core_PseudoConstant::get('CRM_Financial_DAO_FinancialItem', 'status_id');
+            $batchStatus = CRM_Core_PseudoConstant::get('CRM_Batch_DAO_Batch', 'status_id');
             $params['status_id'] = CRM_Utils_Array::key($status, $batchStatus);
             $session = CRM_Core_Session::singleton();
             $params['modified_date'] = date('YmdHis');