Skip to content

Commit 49ab840

Browse files
committed
MC-16222: Cannot save Shipping Methods page because in UPS method have required fields
1 parent 98ef7d6 commit 49ab840

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/code/Magento/Ups/view/adminhtml/templates/system/shipping/carrier_config.phtml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,10 @@ require(["prototype"], function(){
159159
} else {
160160
for (a = 0; a < this.checkingUpsXmlId.length; a++) {
161161
if ($F(this.carriersUpsActiveId) === '1') {
162+
if ($(this.checkingUpsXmlId[a] + '_inherit') !== null
163+
&& $F(this.checkingUpsXmlId[a] + '_inherit') === '1') {
164+
continue;
165+
}
162166
$(this.checkingUpsXmlId[a]).addClassName('required-entry').disabled = false;
163167
} else {
164168
$(this.checkingUpsXmlId[a]).removeClassName('required-entry').disabled = true;

0 commit comments

Comments
 (0)