Skip to content

Commit 8cf01c2

Browse files
authored
Magento Auto Sync Merge from: magento / magento2ce / develop
2 parents daec138 + 46eaf40 commit 8cf01c2

File tree

7 files changed

+7
-6
lines changed

7 files changed

+7
-6
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[![Build Status](https://travis-ci.org/magento/magento2.svg?branch=develop)](https://travis-ci.org/magento/magento2)
22
[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/magento/magento2?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
3+
[![Crowdin](https://d322cqt584bo4o.cloudfront.net/magento-2/localized.png)](https://crowdin.com/project/magento-2)
34
<h2>Welcome</h2>
45
Welcome to Magento 2 installation! We're glad you chose to install Magento 2, a cutting edge, feature-rich eCommerce solution that gets results.
56

app/code/Magento/CatalogInventory/Model/ResourceModel/Stock.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public function lockProductsStock($productIds, $websiteId)
140140
public function correctItemsQty(array $items, $websiteId, $operator)
141141
{
142142
if (empty($items)) {
143-
return $this;
143+
return;
144144
}
145145

146146
$connection = $this->getConnection();

app/code/Magento/Downloadable/i18n/en_US.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ inline,inline
4444
Pending,Pending
4545
Invoiced,Invoiced
4646
"To enable the option set the weight to no","To enable the option set the weight to no"
47-
"Is this downloadable Product?","Is this downloadable Product?"
47+
"Is this a downloadable Product?","Is this a downloadable Product?"
4848
Links,Links
4949
Title,Title
5050
"Links can be purchased separately","Links can be purchased separately"

app/code/Magento/Downloadable/view/adminhtml/templates/product/edit/downloadable.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ var uploaderTemplate = '<div class="no-display" id="[[idName]]-template">' +
211211
<input type="checkbox" data-action="change-type-product-downloadable" class="admin__control-checkbox"
212212
name="is_downloadable" id="is-downloaodable" <?= $block->isDownloadable() ? 'checked="checked"' : ''?> />
213213
<label class="admin__field-label" for="is-downloaodable">
214-
<span><?= /* @noEscape */ __('Is this downloadable Product?'); ?></span>
214+
<span><?= /* @noEscape */ __('Is this a downloadable Product?'); ?></span>
215215
</label>
216216
</div>
217217
<div class="entry-edit" id="product_info_tabs_downloadable_items">

lib/internal/Magento/Framework/Message/Manager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ public function addException(\Exception $exception, $alternativeText, $group = n
242242
);
243243

244244
$this->logger->critical($message);
245-
$this->addMessage($this->messageFactory->create(MessageInterface::TYPE_ERROR, $alternativeText), $group);
245+
$this->addError($alternativeText, $group);
246246
return $this;
247247
}
248248

lib/internal/Magento/Framework/Model/ResourceModel/AbstractResource.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ abstract protected function _construct();
4343
*
4444
* @return \Magento\Framework\DB\Adapter\AdapterInterface
4545
*/
46-
abstract protected function getConnection();
46+
abstract public function getConnection();
4747

4848
/**
4949
* Start resource transaction

lib/internal/Magento/Framework/Model/Test/Unit/ResourceModel/AbstractResourceStub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ protected function _construct()
3131
*
3232
* @return AdapterInterface
3333
*/
34-
protected function getConnection()
34+
public function getConnection()
3535
{
3636
return $this->connectionAdapter;
3737
}

0 commit comments

Comments
 (0)