File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
app/code/Magento/Customer Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -139,8 +139,8 @@ protected function _prepareLayout()
139
139
140
140
if ($ postedData = $ this ->_customerSession ->getAddressFormData (true )) {
141
141
$ postedData ['region ' ] = [
142
- 'region_id ' => $ postedData ['region_id ' ],
143
- 'region ' => $ postedData ['region ' ],
142
+ 'region_id ' => $ postedData ['region_id ' ] ?? null ,
143
+ 'region ' => $ postedData ['region ' ] ?? null ,
144
144
];
145
145
$ this ->dataObjectHelper ->populateWithArray (
146
146
$ this ->_address ,
Original file line number Diff line number Diff line change 8
8
use Magento \Customer \Api \AddressMetadataInterface ;
9
9
use Magento \Customer \Api \AddressMetadataManagementInterface ;
10
10
use Magento \Customer \Model \Metadata \AttributeResolver ;
11
- use Magento \Framework \App \Helper \Context ;
12
11
13
12
/**
14
13
* Customer attribute checker.
You can’t perform that action at this time.
0 commit comments