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

Contact.get api - birth_date & deceased_date fixes

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.4.4
    • Fix Version/s: 4.4.5
    • Component/s: None
    • Labels:
      None

      Description

      I was working on being able to use 'BETWEEN' via the api - leveraging the strtotime handling to say age BETWEEN 6 & 14. However, in first round of tests I discovered that birth_date & by extension other date fields are not working correctly via the api as the time part of the string is being set - resulting checking if birthdate matches '3 am on 3 Jan 1972' - which is a level of detail not stored!

      So first PR deals only with test for existing functionality & fix for bug thus-discovered

        Attachments

          Activity

            People

            • Assignee:
              timotten Tim Otten
              Reporter:
              eileen Eileen McNaughton
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: