Skip to content

Commit c2189c1

Browse files
author
Oleksandr Dubovyk
committed
MAGETWO-97259: [2.3] If an request includes required image attribute, the admin user cannot process save
1 parent 6b845bd commit c2189c1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/web/mage/validation.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1132,10 +1132,10 @@
11321132
ovId;
11331133

11341134
if (!result) {
1135-
ovId = '#' + $(elm).attr('id') + '_value';
1135+
ovId = $('#' + $(elm).attr('id') + '_value');
11361136

1137-
if ($(ovId)) {
1138-
result = !$.mage.isEmptyNoTrim($(ovId).val());
1137+
if (ovId.length > 0) {
1138+
result = !$.mage.isEmptyNoTrim(ovId.val());
11391139
}
11401140
}
11411141

0 commit comments

Comments
 (0)