File tree 2 files changed +10
-22
lines changed
app/code/Magento/Catalog/Block/Adminhtml/Product/Attribute/Edit/Tab
2 files changed +10
-22
lines changed Original file line number Diff line number Diff line change @@ -184,33 +184,19 @@ protected function _prepareForm()
184
184
'form_after ' ,
185
185
$ this ->getLayout ()->createBlock (
186
186
\Magento \Backend \Block \Widget \Form \Element \Dependence::class
187
- )->addFieldMap (
188
- "is_wysiwyg_enabled " ,
189
- 'wysiwyg_enabled '
190
187
)->addFieldMap (
191
188
"is_html_allowed_on_front " ,
192
189
'html_allowed_on_front '
193
190
)->addFieldMap (
194
191
"frontend_input " ,
195
192
'frontend_input_type '
196
- )->addFieldDependence (
197
- 'wysiwyg_enabled ' ,
198
- 'frontend_input_type ' ,
199
- 'textarea '
200
- )->addFieldDependence (
201
- 'html_allowed_on_front ' ,
202
- 'wysiwyg_enabled ' ,
203
- '0 '
204
- )
205
- ->addFieldMap (
193
+ )->addFieldMap (
206
194
"is_searchable " ,
207
195
'searchable '
208
- )
209
- ->addFieldMap (
196
+ )->addFieldMap (
210
197
"is_visible_in_advanced_search " ,
211
198
'advanced_search '
212
- )
213
- ->addFieldDependence (
199
+ )->addFieldDependence (
214
200
'advanced_search ' ,
215
201
'searchable ' ,
216
202
'1 '
Original file line number Diff line number Diff line change @@ -456,12 +456,14 @@ define([
456
456
} else {
457
457
values = valuesFrom [ idFrom ] . values ;
458
458
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 ;
462
463
463
- if ( ! radioFrom || isInArray && isNegative || ! isInArray && ! isNegative ) {
464
- shouldShowUp = false ;
464
+ if ( ! radioFrom || isInArray && isNegative || ! isInArray && ! isNegative ) {
465
+ shouldShowUp = false ;
466
+ }
465
467
}
466
468
}
467
469
}
You can’t perform that action at this time.
0 commit comments