Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Minor
-
Resolution: Won't Fix
-
Affects Version/s: 3.0.3
-
Fix Version/s: 4.3.0
-
Component/s: CiviPledge
-
Labels:None
Description
When one passes data of the wrong type into the CRM_Pledge_BAO_Payment::add method, the incorrect data is not caught and is passed to the db
Exampe: the following call will attempt to pass the word 'Test' into the reminder_date field of the civicrm_pledge_payment table.
$params = array('pledge_id' => 1,
'scheduled_amount' => '100',
'scheduled_date' => date('Ymd'),
'reminder_date' => 'Test',
);
$paymentid = CRM_Pledge_BAO_Payment::add($params);