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

Search Builder translates "Yes" into "No" on "Yes or No" (boolean) custom fields

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.4.8, 4.2.2, Unscheduled
    • Fix Version/s: 4.3.0
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      Matching on a boolean custom field with "Yes" as a value translates the value to "No" in the displayed criterias in search builder due to "$value = (int ) $value;" in CRM/Core/BAO/CustomQuery.php.

      The issue exists at least since 2.0.6 and persists in trunk as well.

      The attached patch is supposed to address the issue.

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              aproka Aron MEZEI
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: