From 977196f242fd7aeba89e6073c00d8ca9d4234d9e Mon Sep 17 00:00:00 2001 From: Pradeep Nayak Date: Mon, 19 Nov 2018 00:26:19 +0530 Subject: [PATCH] format form values for multi-select fields --- CRM/Batch/BAO/Batch.php | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/CRM/Batch/BAO/Batch.php b/CRM/Batch/BAO/Batch.php index 3424c78657..ad2f096730 100644 --- a/CRM/Batch/BAO/Batch.php +++ b/CRM/Batch/BAO/Batch.php @@ -748,7 +748,20 @@ LEFT JOIN civicrm_contribution_soft ON civicrm_contribution_soft.contribution_id } } - $searchParams = CRM_Contact_BAO_Query::convertFormValues($values); + $searchParams = CRM_Contact_BAO_Query::convertFormValues( + $values, + 0, + FALSE, + NULL, + [ + 'financial_type_id', + 'contribution_soft_credit_type_id', + 'contribution_status_id', + 'contribution_page_id', + 'financial_trxn_card_type_id', + 'contribution_payment_instrument_id', + ] + ); // @todo the use of defaultReturnProperties means the search will be inefficient // as slow-unneeded properties are included. $query = new CRM_Contact_BAO_Query($searchParams, -- 2.25.1