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

When using custom fields for smart group criteria, relative dates create static dates instead

    Details

    • Type: Bug
    • Status: Won't Do
    • Priority: Trivial
    • Resolution: Won't Do
    • Affects Version/s: 4.7.18
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Needs Funding
    • Verified?:
      No

      Description

      We check to see if the field matches the pattern _date_relative and if so, we record that it's a relative date field when we save the search.

      However, custom fields come through in the form: custom_13_relative so they don't match and thus are not treated as relative dates.

      Since the UI on the search form gives the impression that they are relative dates (same drop down as the relative dates for activity, contribution, etc) it leads to user confusion.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jamie Jamie McClelland
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: