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

Change API to support fields that are CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Won't Fix
    • Affects Version/s: 4.6.3
    • Fix Version/s: None
    • Component/s: CiviCRM API
    • Labels:
    • Documentation Required?:
      None

      Description

      A number of DAO columns are defined as having type ...

      CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME
      

      Calling the 'setvalue' API on such a field (eg, 'Contibution' 'receipt_date') gives the error:

      Param 'receipt_date' is of a type not managed yet (12). Join the API team and help us implement it
      

      Taking that as an invitation, I've patched the code so the API treats this like a CRM_Utils_Type::T_DATE. A PR is forthcoming

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ken Ken West
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: