Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-5409

BAO payment add is allowing day ofthe wrong type

    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);

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              jalama Jim Taylor
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: