Problem/Motivation

You can not add a state/province to address fields in events or profiles by default. In the US (and potentially other countries as well) this field is important.

Proposed resolution

Address fields
"The field that needs to be added is administrative area. This corresponds to province, state, and region. My understanding is that address module is smart enough to add those fields conditionally the way it adds zipcode for United States and postal code for Australia."

Remaining tasks

- Export this default field configuration for events and profiles.
- Check if this does not create regressions for countries where this field is not needed.
- Create a pullrequest.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jaapjan created an issue. See original summary.

ribel’s picture

Version: 8.x-1.0-beta7 » 8.x-1.0-beta11
Status: Active » Needs review
FileSize
5.03 KB

Hi Guys!
I have created simple patch, which enables administrative area for Event and Profile address fields.
Also i have updated behat tests in order to check this new field.

ribel’s picture

FileSize
5.09 KB

Here is updated patch.

ribel’s picture

FileSize
8.53 KB

In order to be consistent, I have also added administrative area for Group address field.
See patch and updated PR: https://github.com/open-social-eci/open_social/pull/11

nielsvandermolen’s picture

Status: Needs review » Reviewed & tested by the community

Seems to work well for a project we are working on and the code looks clean.

robertragas’s picture

Added updated patch that can be used against the rc2

robertragas’s picture

Status: Reviewed & tested by the community » Needs review
robertragas’s picture

Version: 8.x-1.0-beta11 » 8.x-1.0-rc2
jochemvn’s picture

Priority: Minor » Critical
jaapjan’s picture

Status: Needs review » Fixed

Just merged this in. Thank you!

  • 59c24e0 committed on 8.x-1.x
    Issue #2835788 by ribel, robertragas, nielsvandermolen: Enable...
  • ribel committed 92b18f9 on 8.x-1.x
    Issue #2835788 by ribel: Enable administrative area for Group address...
  • ribel committed a5970b2 on 8.x-1.x
    Issue #2835788 by ribel: Enable administrative area for Event and...
  • RobertRagas committed cdbf548 on 8.x-1.x
    Issue #2835788 by robertragas: Correct behat test for Open Social rc2
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.