Skip to content

Commit e83eec7

Browse files
🔃 [EngCom] Public Pull Requests - 2.2-develop
Accepted Public Pull Requests: - magento#13563: magento#11252: fix adminhtml file attribute edit form (by @Mkennethsmith) - magento#13528: Fix for magento#12081: missing translations in the js-translations.json (by @mattijv) - magento#13462: Switch updatecart qty input validators to dynamic instead of hardcoding (by @gil--) Fixed GitHub Issues: - magento#11252: Custom attribute - File not allowing uploads (reported by @stevenlavine) has been fixed in magento#13563 by @Mkennethsmith in 2.2-develop branch Related commits: 1. 6cc8bdb 2. 54254ad - magento#12081: Magento 2.2.0: Translations for 'Item in Cart' missing in mini cart. (reported by @jhruehl) has been fixed in magento#13528 by @mattijv in 2.2-develop branch Related commits: 1. 9c35c45
2 parents c7acfe2 + 8171225 commit e83eec7

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

app/code/Magento/Checkout/view/frontend/templates/cart/item/configure/updatecart.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
value=""
2424
title="<?= /* @escapeNotVerified */ __('Qty') ?>"
2525
class="input-text qty"
26-
data-validate="{'required-number':true,digits:true}"/>
26+
data-validate="<?= $block->escapeHtml(json_encode($block->getQuantityValidators())) ?>"/>
2727
</div>
2828
</div>
2929
<?php endif; ?>

app/code/Magento/Customer/Model/FileUploader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public function upload()
110110
$result = $fileProcessor->saveTemporaryFile($this->scope . '[' . $this->getAttributeCode() . ']');
111111

112112
// Update tmp_name param. Required for attribute validation!
113-
$result['tmp_name'] = $result['path'] . '/' . ltrim($result['file'], '/');
113+
$result['tmp_name'] = ltrim($result['file'], '/');
114114

115115
$result['url'] = $fileProcessor->getViewUrl(
116116
FileProcessor::TMP_DIR . '/' . ltrim($result['name'], '/'),

app/code/Magento/Customer/Test/Unit/Model/FileUploaderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public function testUpload()
140140
'name' => $resultFileName,
141141
'file' => $resultFileName,
142142
'path' => $resultFilePath,
143-
'tmp_name' => $resultFilePath . $resultFileName,
143+
'tmp_name' => ltrim($resultFileName, '/'),
144144
'url' => $resultFileUrl,
145145
];
146146

app/code/Magento/Translation/etc/di.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
<item name="translate_wrapping" xsi:type="string"><![CDATA[~translate\=("')([^\'].*?)\'\"~]]></item>
6868
<item name="mage_translation_widget" xsi:type="string"><![CDATA[~(?:\$|jQuery)\.mage\.__\((?s)[^'"]*?(['"])(.+?)(?<!\\)\1(?s).*?\)~]]></item>
6969
<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>
7071
</argument>
7172
</arguments>
7273
</type>

0 commit comments

Comments
 (0)