Skip to content

Commit 504dd91

Browse files
Issue #24842: Unable to delete custom option file in admin order create
Fix inputBox selector to match html structure
1 parent 419fbf3 commit 504dd91

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Catalog/view/adminhtml/templates/catalog/product/composite/fieldset/options/type

1 file changed

+1
-1
lines changed

app/code/Magento/Catalog/view/adminhtml/templates/catalog/product/composite/fieldset/options/type/file.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ require(['prototype'], function(){
2222
initializeFile: function(inputBox) {
2323
this.inputFile = inputBox.select('input[name="<?= /* @noEscape */ $_fileName ?>"]')[0];
2424
this.inputFileAction = inputBox.select('input[name="<?= /* @noEscape */ $_fieldNameAction ?>"]')[0];
25-
this.fileNameBox = inputBox.up('dd').select('.<?= /* @noEscape */ $_fileNamed ?>')[0];
25+
this.fileNameBox = inputBox.up('div').select('.<?= /* @noEscape */ $_fileNamed ?>')[0];
2626
},
2727

2828
toggleFileChange: function(inputBox) {

0 commit comments

Comments
 (0)