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

Edit/Create contact without "Country" enabled generates error

    Details

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

      Description

      To duplicate this error, Navigate to: CiviCRM » Administer CiviCRM » Global Settings » Address Settings. Deselect "Country" in the Address Editing section. Save settings.

      Any attempt to create or edit a contact results in this error message:

      Array
      (
      [callback] => Array
      (
      [0] => CRM_Core_Error
      [1] => handle
      )

      [code] => -3
      [message] => QuickForm Error: nonexistent html element
      [mode] => 16
      [debug_info] => Element 'location[1][address][country_id]' does not exist in HTML_QuickForm::getElementValue()
      [type] => HTML_QuickForm_Error
      [user_info] => Element 'location[1][address][country_id]' does not exist in HTML_QuickForm::getElementValue()
      [to_string] => [html_quickform_error: message="nonexistent html element" code=-3 mode=callback callback=CRM_Core_Error::handle prefix="QuickForm Error: " info="Element 'location[1][address][country_id]' does not exist in HTML_QuickForm::getElementValue()"]
      )

      Occured both on my install and recreated at demo.civicrm.org/drupal

        Attachments

          Activity

            People

            • Assignee:
              sunil Sunil Pawar
              Reporter:
              fathershawn Shawn P. Duncan
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: