Skip to content

Commit 2816a49

Browse files
committed
fix-static-funk #15383
1 parent 2b231c5 commit 2816a49

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

dev/tests/functional/tests/app/Magento/Newsletter/Test/Block/Adminhtml/Queue/Edit/QueueForm.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<selector>input[name='start_at']</selector>
1212
</queue_start_at>
1313
<stores>
14-
<selector>select[name="stores[]"]</selector>
14+
<selector>select[name="stores[0]"]</selector>
1515
<input>multiselectgrouplist</input>
1616
</stores>
1717
<newsletter_subject>

dev/tests/functional/tests/app/Magento/Review/Test/Block/Adminhtml/Rating/Edit/RatingForm.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<strategy>css selector</strategy>
1313
<fields>
1414
<stores>
15-
<selector>[name="stores[]"]</selector>
15+
<selector>[name="stores[0]"]</selector>
1616
<input>multiselectgrouplist</input>
1717
</stores>
1818
<is_active>

lib/web/mage/validation/validation.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@
5656

5757
if (element.type === 'checkbox') {
5858
/* If orig-name attribute is present, use it for validation. Else use name */
59-
origNameSelector = '[orig-name="' + element.getAttribute('orig-name') + '"]',
60-
nameSelector = '[name="' + element.name + '"]';
59+
origNameSelector = '[orig-name="' + element.getAttribute('orig-name') + '"]';
60+
nameSelector = '[name="' + element.name + '"]';
6161
selector = element.getAttribute('orig-name') ? origNameSelector : nameSelector;
6262
$(selector).each(function () {
6363
if ($(this).is(':checked')) {

0 commit comments

Comments
 (0)