Commit d0cfaa72 authored by Matt Glaman's avatar Matt Glaman Committed by Bojan Živanović
Browse files

Issue #2799473: Default all address field widgets to "Default country" for site (#492)

parent c80cc042
Loading
Loading
Loading
Loading
+1 −1
Changes for modules/order/config/install/core.entity_form_display.profile.billing.default.yml: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -18,6 +18,6 @@ content:
    type: address_default
    weight: 0
    settings:
      default_country: null
      default_country: 'site_default'
    third_party_settings: {  }
hidden: {  }
+3 −1
Changes for modules/store/src/Entity/Store.php: 3 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -268,7 +268,9 @@ class Store extends ContentEntityBase implements StoreInterface {
      ->setSetting('fields', array_diff(AddressField::getAll(), $disabled_fields))
      ->setDisplayOptions('form', [
        'type' => 'address_default',
        'settings' => [],
        'settings' => [
          'default_country' => 'site_default',
        ],
        'weight' => 3,
      ])
      ->setDisplayConfigurable('view', TRUE)