Skip to content

Commit e67fbbd

Browse files
committed
MC-16221: Cannot save Shipping Methods page because in UPS method have required fields
1 parent 246851e commit e67fbbd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ require(["prototype"], function(){
121121
freeMethod.insert(option);
122122

123123
option = new Element('option', {value:code}).update(originShipment[code]);
124-
if (this.storedUpsType == 'UPS') {
124+
if (this.storedUpsType == 'UPS_XML') {
125125
if (originShipmentTitle != 'default' || inArray(this.storedAllowedMethods, code)) {
126126
option.selected = true;
127127
}
@@ -143,7 +143,7 @@ require(["prototype"], function(){
143143
setFormValues: function()
144144
{
145145
var a;
146-
if ($F(this.carriersUpsTypeId) == 'UPS') {
146+
if ($F(this.carriersUpsTypeId) == 'UPS_XML') {
147147
for (a = 0; a < this.checkingUpsXmlId.length; a++) {
148148
$(this.checkingUpsXmlId[a]).removeClassName('required-entry');
149149
}

0 commit comments

Comments
 (0)