From e7003513a2e58c478cc5007fe1d903f2c71a4e60 Mon Sep 17 00:00:00 2001 From: Pradeep Nayak Date: Sun, 5 Mar 2017 12:37:52 +0530 Subject: [PATCH] CRM-20193, moved set of code into if condition for better readability ---------------------------------------- * CRM-20193: Draw currency from better table on Batch Transaction form https://issues.civicrm.org/jira/browse/CRM-20193 --- CRM/Batch/BAO/Batch.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/CRM/Batch/BAO/Batch.php b/CRM/Batch/BAO/Batch.php index 568139db8b..cd9f06f509 100644 --- a/CRM/Batch/BAO/Batch.php +++ b/CRM/Batch/BAO/Batch.php @@ -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} "; } -- 2.25.1