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

County field won't save in profile create mode

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.3.5
    • Fix Version/s: 3.4.alpha
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      I first thought this might have to do with my monkeying around with county stuff, but I've re-created the problem on the demo site.

      If you have a profile with a county field, and use it in create mode, the county input isn't saved.

      It turns out that in CRM_Contact_BAO_Contact::createProfileContact(), the county information was saved in $data['address'][$loc]['address']['county_id'] instead of $data['address'][$loc]['county_id'] like all the other address fields. I've attached a patch with the single line change.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: