diff --git a/CRM/Batch/Form/Entry.php b/CRM/Batch/Form/Entry.php index 9a9b05b9325..126034e90c1 100755 --- a/CRM/Batch/Form/Entry.php +++ b/CRM/Batch/Form/Entry.php @@ -513,7 +513,7 @@ private function processContribution(&$params) { //finally call contribution create for all the magic $contribution = CRM_Contribute_BAO_Contribution::create($value, CRM_Core_DAO::$_nullArray); $batchTypes = CRM_Core_Pseudoconstant::get('CRM_Batch_DAO_Batch', 'type_id', array('flip' => 1), 'validate'); - if ($this->_batchInfo['type_id'] == $batchTypes['Pledge']) { + if ($this->_batchInfo['type_id'] == $batchTypes['Pledge Payment']) { $adjustTotalAmount = FALSE; if (isset($params['option_type'][$key])) { if ($params['option_type'][$key] == 2) {