Skip to content

Commit ba7da59

Browse files
committedFeb 28, 2018
Stabilize Builds on Forward Ports Batch 35
1 parent 1693019 commit ba7da59

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed
 

‎lib/web/mage/adminhtml/form.js

+7-5
Original file line numberDiff line numberDiff line change
@@ -456,12 +456,14 @@ define([
456456
} else {
457457
values = valuesFrom[idFrom].values;
458458
fromId = $(idFrom + values[0]);
459-
radioFrom = fromId ? $$('[name="' + fromId.name + '"]:checked') : [];
460-
isInArray = radioFrom.length > 0 && values.indexOf(radioFrom[0].value) !== -1;
461-
isNegative = valuesFrom[idFrom].negative;
459+
if (fromId) {
460+
radioFrom = $$('[name="' + fromId.name + '"]:checked');
461+
isInArray = radioFrom.length > 0 && values.indexOf(radioFrom[0].value) !== -1;
462+
isNegative = valuesFrom[idFrom].negative;
462463

463-
if (!radioFrom || isInArray && isNegative || !isInArray && !isNegative) {
464-
shouldShowUp = false;
464+
if (!radioFrom || isInArray && isNegative || !isInArray && !isNegative) {
465+
shouldShowUp = false;
466+
}
465467
}
466468
}
467469
}

0 commit comments

Comments
 (0)