correct syntax "IS NOT NULL" to get pledge payment count
authorSunil Pawar <sunil@cividesk.com>
Mon, 31 Dec 2018 09:05:05 +0000 (14:35 +0530)
committerSunil Pawar <sunil@cividesk.com>
Mon, 31 Dec 2018 09:05:05 +0000 (14:35 +0530)
CRM/Pledge/BAO/Pledge.php

index f934eb63bbeaa16166bede774f709365f85e9344..4ac0ad467cb99d61657559b2ef85aa33f17c1ac4 100644 (file)
@@ -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),
     ));
   }