File tree Expand file tree Collapse file tree 4 files changed +4
-3
lines changed
Checkout/view/frontend/templates/cart/item/configure Expand file tree Collapse file tree 4 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 23
23
value=""
24
24
title="<?= /* @escapeNotVerified */ __ ('Qty ' ) ?> "
25
25
class="input-text qty"
26
- data-validate="{'required-number':true,digits:true} "/>
26
+ data-validate="<?= $ block -> escapeHtml ( json_encode ( $ block -> getQuantityValidators ())) ?> "/>
27
27
</div>
28
28
</div>
29
29
<?php endif ; ?>
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ public function upload()
110
110
$ result = $ fileProcessor ->saveTemporaryFile ($ this ->scope . '[ ' . $ this ->getAttributeCode () . '] ' );
111
111
112
112
// Update tmp_name param. Required for attribute validation!
113
- $ result ['tmp_name ' ] = $ result [ ' path ' ] . ' / ' . ltrim ($ result ['file ' ], '/ ' );
113
+ $ result ['tmp_name ' ] = ltrim ($ result ['file ' ], '/ ' );
114
114
115
115
$ result ['url ' ] = $ fileProcessor ->getViewUrl (
116
116
FileProcessor::TMP_DIR . '/ ' . ltrim ($ result ['name ' ], '/ ' ),
Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ public function testUpload()
140
140
'name ' => $ resultFileName ,
141
141
'file ' => $ resultFileName ,
142
142
'path ' => $ resultFilePath ,
143
- 'tmp_name ' => $ resultFilePath . $ resultFileName ,
143
+ 'tmp_name ' => ltrim ( $ resultFileName, ' / ' ) ,
144
144
'url ' => $ resultFileUrl ,
145
145
];
146
146
Original file line number Diff line number Diff line change 67
67
<item name =" translate_wrapping" xsi : type =" string" ><![CDATA[ ~translate\=("')([^\'].*?)\'\"~]]> </item >
68
68
<item name =" mage_translation_widget" xsi : type =" string" ><![CDATA[ ~(?:\$|jQuery)\.mage\.__\((?s)[^'"]*?(['"])(.+?)(?<!\\)\1(?s).*?\)~]]> </item >
69
69
<item name =" mage_translation_static" xsi : type =" string" ><![CDATA[ ~\$t\((?s)[^'"]*?(["'])(.+?)\1(?s).*?\)~]]> </item >
70
+ <item name =" translate_args" xsi : type =" string" ><![CDATA[ ~translate args\=("|'|"')([^\'].*?)('"|'|")~]]> </item >
70
71
</argument >
71
72
</arguments >
72
73
</type >
You can’t perform that action at this time.
0 commit comments