Skip to content

Commit

Permalink
Stabilize Builds on Forward Ports Batch 35
Browse files Browse the repository at this point in the history
  • Loading branch information
serhii-balko committed Feb 28, 2018
1 parent 1693019 commit ba7da59
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions lib/web/mage/adminhtml/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -456,12 +456,14 @@ define([
} else {
values = valuesFrom[idFrom].values;
fromId = $(idFrom + values[0]);
radioFrom = fromId ? $$('[name="' + fromId.name + '"]:checked') : [];
isInArray = radioFrom.length > 0 && values.indexOf(radioFrom[0].value) !== -1;
isNegative = valuesFrom[idFrom].negative;
if (fromId) {
radioFrom = $$('[name="' + fromId.name + '"]:checked');
isInArray = radioFrom.length > 0 && values.indexOf(radioFrom[0].value) !== -1;
isNegative = valuesFrom[idFrom].negative;

if (!radioFrom || isInArray && isNegative || !isInArray && !isNegative) {
shouldShowUp = false;
if (!radioFrom || isInArray && isNegative || !isInArray && !isNegative) {
shouldShowUp = false;
}
}
}
}
Expand Down

0 comments on commit ba7da59

Please sign in to comment.