Skip to content

Commit

Permalink
Magento Auto Sync Merge from: magento / magento2ce / develop
Browse files Browse the repository at this point in the history
  • Loading branch information
magento-team authored Mar 25, 2017
2 parents daec138 + 46eaf40 commit 8cf01c2
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[![Build Status](https://travis-ci.org/magento/magento2.svg?branch=develop)](https://travis-ci.org/magento/magento2)
[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/magento/magento2?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
[![Crowdin](https://d322cqt584bo4o.cloudfront.net/magento-2/localized.png)](https://crowdin.com/project/magento-2)
<h2>Welcome</h2>
Welcome to Magento 2 installation! We're glad you chose to install Magento 2, a cutting edge, feature-rich eCommerce solution that gets results.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public function lockProductsStock($productIds, $websiteId)
public function correctItemsQty(array $items, $websiteId, $operator)
{
if (empty($items)) {
return $this;
return;
}

$connection = $this->getConnection();
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Downloadable/i18n/en_US.csv
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ inline,inline
Pending,Pending
Invoiced,Invoiced
"To enable the option set the weight to no","To enable the option set the weight to no"
"Is this downloadable Product?","Is this downloadable Product?"
"Is this a downloadable Product?","Is this a downloadable Product?"
Links,Links
Title,Title
"Links can be purchased separately","Links can be purchased separately"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ var uploaderTemplate = '<div class="no-display" id="[[idName]]-template">' +
<input type="checkbox" data-action="change-type-product-downloadable" class="admin__control-checkbox"
name="is_downloadable" id="is-downloaodable" <?= $block->isDownloadable() ? 'checked="checked"' : ''?> />
<label class="admin__field-label" for="is-downloaodable">
<span><?= /* @noEscape */ __('Is this downloadable Product?'); ?></span>
<span><?= /* @noEscape */ __('Is this a downloadable Product?'); ?></span>
</label>
</div>
<div class="entry-edit" id="product_info_tabs_downloadable_items">
Expand Down
2 changes: 1 addition & 1 deletion lib/internal/Magento/Framework/Message/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ public function addException(\Exception $exception, $alternativeText, $group = n
);

$this->logger->critical($message);
$this->addMessage($this->messageFactory->create(MessageInterface::TYPE_ERROR, $alternativeText), $group);
$this->addError($alternativeText, $group);
return $this;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ abstract protected function _construct();
*
* @return \Magento\Framework\DB\Adapter\AdapterInterface
*/
abstract protected function getConnection();
abstract public function getConnection();

/**
* Start resource transaction
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ protected function _construct()
*
* @return AdapterInterface
*/
protected function getConnection()
public function getConnection()
{
return $this->connectionAdapter;
}
Expand Down

0 comments on commit 8cf01c2

Please sign in to comment.