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

Custom search with "SQL OR" does not paranthesize the where clause properly ..

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 2.1
    • Fix Version/s: 2.1
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      Seems like when we have a where clause with an OR in it, we dont add paranthesis in the right place, thus we get

      group_id IN (1) AND custom_3 = 12 OR custom_4 = 15

      instead of

      group_id IN (1) AND ( custom_3 = 12 OR custom_4 = 15 )

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: