File tree 2 files changed +8
-2
lines changed
Catalog/Model/System/Config/Backend/Catalog/Url/Rewrite
ConfigurableProduct/Pricing/Price 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,11 @@ class Suffix extends \Magento\Framework\App\Config\Value
35
35
/** @var \Magento\Framework\DB\Adapter\AdapterInterface */
36
36
protected $ connection ;
37
37
38
+ /**
39
+ * @var \Magento\Framework\App\ResourceConnection
40
+ */
41
+ protected $ resource ;
42
+
38
43
/**
39
44
* @param \Magento\Framework\Model\Context $context
40
45
* @param \Magento\Framework\Registry $registry
@@ -67,6 +72,7 @@ public function __construct(
67
72
$ this ->connection = $ appResource ->getConnection ();
68
73
$ this ->urlFinder = $ urlFinder ;
69
74
$ this ->storeManager = $ storeManager ;
75
+ $ this ->resource = $ appResource ;
70
76
}
71
77
72
78
/**
@@ -118,7 +124,7 @@ protected function updateSuffixForUrlRewrites()
118
124
? [UrlRewrite::REQUEST_PATH => preg_replace ($ oldSuffixPattern , $ suffix , $ urlRewrite ->getRequestPath ())]
119
125
: [UrlRewrite::TARGET_PATH => preg_replace ($ oldSuffixPattern , $ suffix , $ urlRewrite ->getTargetPath ())];
120
126
$ this ->connection ->update (
121
- DbStorage::TABLE_NAME ,
127
+ $ this -> resource -> getTableName ( DbStorage::TABLE_NAME ) ,
122
128
$ bind ,
123
129
$ this ->connection ->quoteIdentifier (UrlRewrite::URL_REWRITE_ID ) . ' = ' . $ urlRewrite ->getUrlRewriteId ()
124
130
);
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ protected function doGetMaxRegularAmount()
112
112
public function getMinRegularAmount ()
113
113
{
114
114
if (null === $ this ->minRegularAmount ) {
115
- $ this ->minRegularAmount = $ this ->doGetMinRegularAmount () ?: false ;
115
+ $ this ->minRegularAmount = $ this ->doGetMinRegularAmount () ?: parent :: getAmount () ;
116
116
}
117
117
return $ this ->minRegularAmount ;
118
118
}
You can’t perform that action at this time.
0 commit comments