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

adv search: address search any state where county is enabled generates error

    Details

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

      Description

      4.1b1

      enable the county field in global settings > address settings
      go to advanced search and open the address pane
      in the state field, choose "select" (if you choose a different country, the state field defaults to the select option, so it's not uncommon for that to occur)

      returns error:
      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 ') ORDER BY civicrm_state_province.abbreviation, civicrm_county.name' at line 4, 1064

      The issue is:
      WHERE civicrm_county.state_province_id in ( )

        Attachments

          Activity

            People

            • Assignee:
              yashodha Yashodha Chaku
              Reporter:
              lcdweb Brian Shaughnessy
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: