Skip to content

Commit 6e7bdcc

Browse files
author
Oleksii Korshenko
authored
[EngCom] Public Pull Requests
Public Pull Requests #10056 #10047 #10033 #9314 #7729
2 parents e1b47dd + 18f9e12 commit 6e7bdcc

File tree

5 files changed

+15
-7
lines changed

5 files changed

+15
-7
lines changed

app/code/Magento/Checkout/view/frontend/web/template/form/element/email.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@
3939
</label>
4040
<div class="control">
4141
<input class="input-text"
42-
placeholder="optional"
42+
data-bind="
43+
attr: {
44+
placeholder: $t('optional'),
45+
}"
4346
type="password"
4447
name="password"
4548
id="customer-password"

app/code/Magento/ConfigurableImportExport/Model/Import/Product/Type/Configurable.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ class Configurable extends \Magento\CatalogImportExport\Model\Import\Product\Typ
4040
* @var array
4141
*/
4242
protected $_messageTemplates = [
43-
self::ERROR_ATTRIBUTE_CODE_IS_NOT_SUPER => 'Attribute with this code is not super',
44-
self::ERROR_INVALID_OPTION_VALUE => 'Invalid option value',
43+
self::ERROR_ATTRIBUTE_CODE_IS_NOT_SUPER => 'Attribute with code "%s" is not super',
44+
self::ERROR_INVALID_OPTION_VALUE => 'Invalid option value for attribute "%s"',
4545
self::ERROR_INVALID_WEBSITE => 'Invalid website code for super attribute',
4646
self::ERROR_DUPLICATED_VARIATIONS => 'SKU %s contains duplicated variations',
4747
];
@@ -291,12 +291,12 @@ protected function _isParticularAttributesValid(array $rowData, $rowNum)
291291

292292
if (!$this->_isAttributeSuper($superAttrCode)) {
293293
// check attribute superity
294-
$this->_entityModel->addRowError(self::ERROR_ATTRIBUTE_CODE_IS_NOT_SUPER, $rowNum);
294+
$this->_entityModel->addRowError(self::ERROR_ATTRIBUTE_CODE_IS_NOT_SUPER, $rowNum, $superAttrCode);
295295
return false;
296296
} elseif (isset($rowData['_super_attribute_option']) && strlen($rowData['_super_attribute_option'])) {
297297
$optionKey = strtolower($rowData['_super_attribute_option']);
298298
if (!isset($this->_superAttributes[$superAttrCode]['options'][$optionKey])) {
299-
$this->_entityModel->addRowError(self::ERROR_INVALID_OPTION_VALUE, $rowNum);
299+
$this->_entityModel->addRowError(self::ERROR_INVALID_OPTION_VALUE, $rowNum, $superAttrCode);
300300
return false;
301301
}
302302
}

app/code/Magento/Ui/view/base/web/js/form/element/file-uploader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ define([
330330

331331
if (allowed.passed) {
332332
target.on('fileuploadsend', function (event, postData) {
333-
postData.data.set('param_name', this.paramName);
333+
postData.data.append('param_name', this.paramName);
334334
}.bind(data));
335335

336336
target.fileupload('process', data).done(function () {

app/code/Magento/Usps/Model/Carrier.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2067,6 +2067,11 @@ protected function _parseZip($zipString, $returnFull = false)
20672067
*/
20682068
private function isServiceAvailable(\SimpleXMLElement $service)
20692069
{
2070+
// Allow services which which don't provide any ExtraServices
2071+
if(empty($service->ExtraServices->children()->count())) {
2072+
return true;
2073+
}
2074+
20702075
foreach ($service->ExtraServices->children() as $child) {
20712076
if (filter_var($child->Available, FILTER_VALIDATE_BOOLEAN)) {
20722077
return true;

lib/internal/Magento/Framework/Webapi/ServiceInputProcessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ private function processCustomAttribute($customAttribute)
264264
throw new SerializationException(new Phrase('There is an empty custom attribute specified.'));
265265
} elseif (!$customAttributeCode) {
266266
throw new SerializationException(new Phrase('A custom attribute is specified without an attribute code.'));
267-
} elseif (!isset($customAttribute[AttributeValue::VALUE])) {
267+
} elseif (!array_key_exists(AttributeValue::VALUE, $customAttribute)) {
268268
throw new SerializationException(
269269
new Phrase('Value is not set for attribute code "' . $customAttributeCode . '"')
270270
);

0 commit comments

Comments
 (0)