File tree Expand file tree Collapse file tree 4 files changed +15
-4
lines changed
Catalog/view/adminhtml/templates/catalog/product/attribute
Swatches/view/adminhtml/templates/catalog/product/attribute Expand file tree Collapse file tree 4 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 8
8
9
9
/** @var $block \Magento\Eav\Block\Adminhtml\Attribute\Edit\Options\Options */
10
10
?>
11
- <fieldset class="fieldset ignore-validate ">
11
+ <fieldset class="fieldset">
12
12
<legend class="legend"><span><?php /* @escapeNotVerified */ echo __ ('Manage Options (values of your attribute) ' ) ?> </span></legend>
13
13
<div id="manage-options-panel">
14
14
<table class="admin__control-table">
Original file line number Diff line number Diff line change 37
37
<tfoot>
38
38
<tr>
39
39
<th colspan="<?php /* @escapeNotVerified */ echo $ storetotal ; ?> ">
40
- <input type="hidden" class="required-swatch-entry"/>
40
+ <input type="hidden" class="required-text- swatch-entry" name="text_swatch_validation "/>
41
41
</th>
42
42
</tr>
43
43
<tr>
Original file line number Diff line number Diff line change 33
33
<tfoot>
34
34
<tr>
35
35
<th colspan="<?php /* @escapeNotVerified */ echo $ storetotal ; ?> ">
36
- <input type="hidden" class="required-swatch-entry"/>
36
+ <input type="hidden" class="required-visual- swatch-entry" name="visual_swatch_validation "/>
37
37
</th>
38
38
</tr>
39
39
<tr>
Original file line number Diff line number Diff line change 1239
1239
} ,
1240
1240
'Please enter a valid number.'
1241
1241
] ,
1242
- 'required-swatch-entry' : [
1242
+ 'required-text-swatch-entry' : [
1243
+ function ( value , element ) {
1244
+ var empty = $ ( element ) . closest ( 'table' )
1245
+ . find ( 'input.required-option:visible' )
1246
+ . filter ( function ( i , el ) {
1247
+ return $ . mage . isEmpty ( el . value ) ;
1248
+ } )
1249
+ . length ;
1250
+ return empty === 0 ;
1251
+ } , 'Swatch and Admin are the required fields in the each row.'
1252
+ ] ,
1253
+ 'required-visual-swatch-entry' : [
1243
1254
function ( value , element ) {
1244
1255
var empty = $ ( element ) . closest ( 'table' )
1245
1256
. find ( 'input.required-option:visible' )
You can’t perform that action at this time.
0 commit comments