Skip to content

Commit 7308595

Browse files
committed
MAGETWO-59365: Countries list is not loaded if change customer website after country was selected
1 parent d8eac00 commit 7308595

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

app/code/Magento/Directory/Model/ResourceModel/Region/Collection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ public function toOptionArray()
206206
if (count($options) > 0) {
207207
array_unshift(
208208
$options,
209-
['title' => null, 'value' => null, 'label' => __('Please select a region, state or province.')]
209+
['title' => '', 'value' => '', 'label' => __('Please select a region, state or province.')]
210210
);
211211
}
212212
return $options;

app/code/Magento/Ui/view/base/web/js/form/element/country.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ define([
4242
});
4343

4444
this.setOptions(result);
45+
this.reset();
4546
}
4647
});
4748
});

0 commit comments

Comments
 (0)