CRM-13066, code cleanup
authorkurund <kurund@civicrm.org>
Thu, 29 Aug 2013 13:35:08 +0000 (19:05 +0530)
committerkurund <kurund@civicrm.org>
Thu, 29 Aug 2013 13:35:08 +0000 (19:05 +0530)
----------------------------------------
* CRM-13066: 'Clean up Caches' deletes in progress batches
  http://issues.civicrm.org/jira/browse/CRM-13066

CRM/Batch/Form/Entry.php

index cfedc822fd33ec600fb047f46e836361a1b9012b..b4f672778e419b7527f114e7ff630093ebef2af2 100644 (file)
@@ -371,14 +371,11 @@ class CRM_Batch_Form_Entry extends CRM_Core_Form {
       // close status
       'status_id' => 2,
       'total' => $params['actualBatchTotal'],
+      'data' => 'NULL',
     );
 
     CRM_Batch_BAO_Batch::create($paramValues);
 
-    // delete from cache table
-    $cacheKeyString = CRM_Batch_BAO_Batch::getCacheKeyForBatch($this->_batchId);
-    CRM_Core_BAO_Cache::deleteGroup('batch entry', $cacheKeyString, FALSE);
-
     // set success status
     CRM_Core_Session::setStatus("", ts("Batch Processed."), "success");