CRM-20193, moved set of code into if condition for better readability
authorPradeep Nayak <pradpnayak@gmail.com>
Sun, 5 Mar 2017 07:07:52 +0000 (12:37 +0530)
committerPradeep Nayak <pradpnayak@gmail.com>
Sun, 5 Mar 2017 07:07:52 +0000 (12:37 +0530)
----------------------------------------
* CRM-20193: Draw currency from better table on Batch Transaction form
  https://issues.civicrm.org/jira/browse/CRM-20193

CRM/Batch/BAO/Batch.php

index 568139db8b429aa87d5976d810735d9fb4197333..cd9f06f509d815d639623d4cdfc0a8ed0f611f80 100644 (file)
@@ -725,13 +725,8 @@ LEFT JOIN civicrm_contribution_soft ON civicrm_contribution_soft.contribution_id
       $where = implode(' AND ', $query->_where[0]) .
         " AND civicrm_entity_batch.batch_id IS NULL ";
       $where = str_replace('civicrm_contribution.payment_instrument_id', 'civicrm_financial_trxn.payment_instrument_id', $where);
-      $searchValue = TRUE;
     }
     else {
-      $searchValue = FALSE;
-    }
-
-    if (!$searchValue) {
       if (!$notPresent) {
         $where = " civicrm_entity_batch.batch_id = {$entityID} ";
       }