Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The address gets #available_countries => ['US'] and a French address. It shows a country dropdown with FR and US. But switching from FR to US crashes ajax.
This is a regression introduced in 1.0 when we added the country element, it worked previously, but is obviously lacking test coverage.
Comments
Comment #4
bojanz CreditAttribution: bojanz at Centarro commentedAdded a test, fixed it in Address (we needed to pass the element's #default_value down to the country, not the #value), tweaked Zone to ensure code looks similar.
Comment #6
bojanz CreditAttribution: bojanz at Centarro commentedMy guard against broken $input broke optional address fields.
Comment #8
bojanz CreditAttribution: bojanz at Centarro commentedFourth time's the charm?