Skip to content

Commit c334bf2

Browse files
author
He, Joan(johe)
committed
Merge pull request #232 from magento-goinc/MAGETWO-44074
[GITHUB] Bugs fixing
2 parents 2f74e09 + 8235d5b commit c334bf2

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

app/code/Magento/Catalog/Model/System/Config/Backend/Catalog/Url/Rewrite/Suffix.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ class Suffix extends \Magento\Framework\App\Config\Value
3535
/** @var \Magento\Framework\DB\Adapter\AdapterInterface */
3636
protected $connection;
3737

38+
/**
39+
* @var \Magento\Framework\App\ResourceConnection
40+
*/
41+
protected $resource;
42+
3843
/**
3944
* @param \Magento\Framework\Model\Context $context
4045
* @param \Magento\Framework\Registry $registry
@@ -67,6 +72,7 @@ public function __construct(
6772
$this->connection = $appResource->getConnection();
6873
$this->urlFinder = $urlFinder;
6974
$this->storeManager = $storeManager;
75+
$this->resource = $appResource;
7076
}
7177

7278
/**
@@ -118,7 +124,7 @@ protected function updateSuffixForUrlRewrites()
118124
? [UrlRewrite::REQUEST_PATH => preg_replace($oldSuffixPattern, $suffix, $urlRewrite->getRequestPath())]
119125
: [UrlRewrite::TARGET_PATH => preg_replace($oldSuffixPattern, $suffix, $urlRewrite->getTargetPath())];
120126
$this->connection->update(
121-
DbStorage::TABLE_NAME,
127+
$this->resource->getTableName(DbStorage::TABLE_NAME),
122128
$bind,
123129
$this->connection->quoteIdentifier(UrlRewrite::URL_REWRITE_ID) . ' = ' . $urlRewrite->getUrlRewriteId()
124130
);

app/code/Magento/ConfigurableProduct/Pricing/Price/ConfigurableRegularPrice.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ protected function doGetMaxRegularAmount()
112112
public function getMinRegularAmount()
113113
{
114114
if (null === $this->minRegularAmount) {
115-
$this->minRegularAmount = $this->doGetMinRegularAmount() ?: false;
115+
$this->minRegularAmount = $this->doGetMinRegularAmount() ?: parent::getAmount();
116116
}
117117
return $this->minRegularAmount;
118118
}

0 commit comments

Comments
 (0)