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

Profile - Search on Address Fields is Broken

    Details

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

      Description

      Searching in a Profile on City, State, Country (and I suspect all other address fields) is broken.

      To recreate, use our sample (generated) data, and go to search form for profile 1 (...civicrm/profile?gid=1&reset=1)

      Then search on State = California (you can also search on Country = United States)...

      Database Error Code: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE ( LOWER(civicrm_country.name) = 'united states' ) AND ( 1 ) GROUP BY ' at line 4, 1064

        Attachments

          Activity

            People

            • Assignee:
              sunil Sunil Pawar
              Reporter:
              dgg David Greenberg
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: