From b6e6c7bc7c76486bb607d64d79724baac5cc766c Mon Sep 17 00:00:00 2001 From: Sunil Pawar Date: Mon, 31 Dec 2018 14:35:05 +0530 Subject: [PATCH] correct syntax "IS NOT NULL" to get pledge payment count --- CRM/Pledge/BAO/Pledge.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Pledge/BAO/Pledge.php b/CRM/Pledge/BAO/Pledge.php index f934eb63bb..4ac0ad467c 100644 --- a/CRM/Pledge/BAO/Pledge.php +++ b/CRM/Pledge/BAO/Pledge.php @@ -1145,7 +1145,7 @@ SELECT pledge.contact_id as contact_id, return civicrm_api3('pledge_payment', 'getcount', array( 'pledge_id' => $pledgeID, - 'contribution_id' => array('NOT NULL' => TRUE), + 'contribution_id' => array('IS NOT NULL' => TRUE), )); } -- 2.25.1