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

(4.5 regression) Advanced search address tab won't expand if country not selected in address editing

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.5.2
    • Fix Version/s: 4.5.3
    • Component/s: None
    • Labels:
      None
    • Documentation Required?:
      None

      Description

      To replicate on demo
      http://d45.demo.civicrm.org/civicrm/admin/setting/preferences/address?reset=1
      ensure country is deselected in address editing section
      (I tested with state province selected - not sure if it matters)

      At
      http://d45.demo.civicrm.org/civicrm/contact/search/advanced?reset=1
      address accordian will not open

      If you have debugging on fb gives a backtrace - I've lost it but the key part is

      $controlField = $this->getElement($control);
      $targetField = $this->getElement($target);

      fails when it tries to retrieve the non existent country element
      ====
      Additional related problem reported by Tommy from AGH ....

      • go to localization > address settings
      • uncheck Country in the address fields
      • clear caches
      • type "adam" in the quick search box and hit return (i.e. don't select anyone)
      • get an error

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                colemanw Coleman Watts
                Reporter:
                eileen Eileen McNaughton
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: