Skip to content

Commit 607a301

Browse files
authored
Merge pull request #948 from magento-engcom/develop-prs
[EngCom] Public Pull Requests
2 parents 00efa0d + d14998f commit 607a301

File tree

17 files changed

+27
-28
lines changed

17 files changed

+27
-28
lines changed

app/code/Magento/Catalog/Block/Adminhtml/Product/Helper/Form/Image.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ protected function _getUrl()
2121
$url = false;
2222
if ($this->getValue()) {
2323
$url = $this->_urlBuilder->getBaseUrl(
24-
\Magento\Framework\UrlInterface::URL_TYPE_MEDIA
24+
['_type' => \Magento\Framework\UrlInterface::URL_TYPE_MEDIA]
2525
) . 'catalog/product/' . $this->getValue();
2626
}
2727
return $url;

app/code/Magento/Catalog/Controller/Adminhtml/Product/Attribute/Save.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public function execute()
129129
$attributeCode = $this->getRequest()->getParam('attribute_code')
130130
?: $this->generateCode($this->getRequest()->getParam('frontend_label')[0]);
131131
if (strlen($attributeCode) > 0) {
132-
$validatorAttrCode = new \Zend_Validate_Regex(['pattern' => '/^[a-z][a-z_0-9]{0,30}$/']);
132+
$validatorAttrCode = new \Zend_Validate_Regex(['pattern' => '/^[a-z\x{600}-\x{6FF}][a-z\x{600}-\x{6FF}_0-9]{0,30}$/u']);
133133
if (!$validatorAttrCode->isValid($attributeCode)) {
134134
$this->messageManager->addError(
135135
__(

app/code/Magento/Catalog/Model/Product/Gallery/CreateHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ public function execute($product, $arguments = [])
164164
$product->setData($mediaAttrCode . '_label', $newImages[$attrData]['label']);
165165
}
166166

167-
if (in_array($attrData, array_keys($existImages))) {
167+
if (in_array($attrData, array_keys($existImages)) && isset($existImages[$attrData]['label'])) {
168168
$product->setData($mediaAttrCode . '_label', $existImages[$attrData]['label']);
169169
}
170170
if (!empty($product->getData($mediaAttrCode))) {

app/code/Magento/Catalog/Model/ResourceModel/AbstractResource.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,6 +568,6 @@ public function getAttributeRawValue($entityId, $attribute, $store)
568568
$attributesData = $_data[1];
569569
}
570570

571-
return $attributesData ? $attributesData : false;
571+
return $attributesData === false ? false : $attributesData;
572572
}
573573
}

app/code/Magento/Checkout/view/frontend/web/template/billing-address/form.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<!-- ko foreach: getRegion('before-fields') -->
99
<!-- ko template: getTemplate() --><!-- /ko -->
1010
<!--/ko-->
11-
<form data-hasrequired="* Required Fields">
11+
<form data-bind="attr: {'data-hasrequired': $t('* Required Fields')}">
1212
<fieldset id="billing-new-address-form" class="fieldset address">
1313
<!-- ko foreach: getRegion('additional-fieldsets') -->
1414
<!-- ko template: getTemplate() --><!-- /ko -->

app/code/Magento/Cms/Setup/InstallData.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public function install(ModuleDataSetupInterface $setup, ModuleContextInterface
106106
<div class="privacy-policy cms-content">
107107
<div class="message info">
108108
<span>
109-
Please replace this text with you Privacy Policy.
109+
Please replace this text with your Privacy Policy.
110110
Please add any additional cookies your website uses below (e.g. Google Analytics).
111111
</span>
112112
</div>

app/code/Magento/Config/view/adminhtml/templates/system/config/form/field/array.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ $_colspan = $block->isAddAfter() ? 2 : 1;
1515

1616
<div class="design_theme_ua_regexp" id="grid<?php /* @escapeNotVerified */ echo $_htmlId; ?>">
1717
<div class="admin__control-table-wrapper">
18-
<table class="admin__control-table">
18+
<table class="admin__control-table" id="<?php /* @escapeNotVerified */ echo $block->getElement()->getId(); ?>">
1919
<thead>
2020
<tr>
2121
<?php foreach ($block->getColumns() as $columnName => $column): ?>

app/code/Magento/Deploy/Console/Command/DeployStaticOptionsInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ interface DeployStaticOptionsInterface
8484
const EXCLUDE_AREA = 'exclude-area';
8585

8686
/**
87-
* Jey for jobs option
87+
* Key for jobs option
8888
*/
8989
const JOBS_AMOUNT = 'jobs';
9090

app/code/Magento/Email/Model/Template/Filter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1018,7 +1018,7 @@ public function filter($value)
10181018
if ($this->_appState->getMode() == \Magento\Framework\App\State::MODE_DEVELOPER) {
10191019
$value = sprintf(__('Error filtering template: %s'), $e->getMessage());
10201020
} else {
1021-
$value = __("We're sorry, an error has occurred while generating this email.");
1021+
$value = __("We're sorry, an error has occurred while generating this content.");
10221022
}
10231023
$this->_logger->critical($e);
10241024
}

app/code/Magento/Newsletter/Model/Queue.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ public function sendPerSubscriber($count = 20)
236236
)->setTemplateVars(
237237
['subscriber' => $item]
238238
)->setFrom(
239-
['name' => $this->getNewsletterSenderEmail(), 'email' => $this->getNewsletterSenderName()]
239+
['name' => $this->getNewsletterSenderName(), 'email' => $this->getNewsletterSenderEmail()]
240240
)->addTo(
241241
$item->getSubscriberEmail(),
242242
$item->getSubscriberFullName()

0 commit comments

Comments
 (0)