File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
app/code/Magento/MediaGalleryUi/view/adminhtml Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 23
23
"masonryComponentPath": "media_gallery_listing.media_gallery_listing.media_gallery_columns"
24
24
}
25
25
}
26
- }
26
+ },
27
+ "Magento_MediaGalleryUi/js/validation/validate-filename": {}
27
28
}
28
29
}
29
30
</script>
Original file line number Diff line number Diff line change @@ -123,10 +123,10 @@ define([
123
123
content : $t ( data . content ) ,
124
124
modalClass : 'media-gallery-folder-prompt' ,
125
125
validation : true ,
126
- validationRules : [ 'required-entry' , 'validate-alphanum ' ] ,
126
+ validationRules : [ 'required-entry' , 'validate-filename ' ] ,
127
127
attributesField : {
128
128
name : 'folder_name' ,
129
- 'data-validate' : '{required:true, validate-alphanum }' ,
129
+ 'data-validate' : '{required:true, validate-filename }' ,
130
130
maxlength : '128'
131
131
} ,
132
132
attributesForm : {
You can’t perform that action at this time.
0 commit comments