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

CRM Core Payment BaseIPN.php : function validateData() uses DAO objects instead of BAO objects

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.3.3, 4.3.4, 4.3.5
    • Fix Version/s: 4.3.6
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      The validateData function instantiates a CRM_Contribute_DAO_Contribution object.

      A few lines later, the call of loadObjects() function will erase this object by a new one because this object type "CRM_Contribute_DAO_Contribution" doesn't match "CRM_Contribute_BAO_Contribution".
      There is no legacy.

      Consequently, the line CRM_Utils_Date::isoToMysql() has no effect.
      An "1292" MySQl error may occured in case of contribution failure. -> Date invalide.
      (cf attachment)

      I suggest to instantiate BAO objects for contribution and contact.

        Attachments

          Activity

            People

            • Assignee:
              pratik.joshi Pratik Joshi
              Reporter:
              valfr35 Valéry Gouleau
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: