Skip to content

Commit 0bb7c3f

Browse files
committed
MAGETWO-58067: [GitHub] Data Loss for Country Multiselect in Backend on Website Level
1 parent c3ed73d commit 0bb7c3f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/code/Magento/Backend/view/adminhtml/templates/system/shipping/applicable_country.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ CountryModel.prototype = {
6868
if (specifCountryElement) {
6969
if (applyCountryElement.value == 1) {
7070
// enable related country select only if its 'Use Default' checkbox is absent or is unchecked
71-
specifCountryElement.disabled = (useDefaultElement) ? useDefaultElement.checked : false;
71+
specifCountryElement.disabled = useDefaultElement ? useDefaultElement.checked : false;
7272
if (showMethodElement) {
7373
this.showElement(showMethodElement.up(1));
7474
}

app/code/Magento/Config/Block/System/Config/Form/Field/Select/Allowspecific.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function getAfterElementHtml()
3737
3838
if (isCountrySpecific) {
3939
// enable related country select only if its 'Use Default' checkbox is absent or is unchecked
40-
specificCountriesElement.disabled = (useDefaultElement) ? useDefaultElement.checked : false;
40+
specificCountriesElement.disabled = useDefaultElement ? useDefaultElement.checked : false;
4141
} else {
4242
// disable related country select if all countries are used
4343
specificCountriesElement.disabled = true;

0 commit comments

Comments
 (0)