[-] Core: Fix #PSCFV-11165 numerical configuration values should not be overridden if the value is the same between shop and global context
This commit is contained in:
1 parent
3975599023
commit
d50999fde0
1 file changed
+2
-1
@@ -314,7 +314,8 @@ class ConfigurationCore extends ObjectModel
|
|||||||
$result = true;
|
$result = true;
|
||||||
foreach ($values as $lang => $value)
|
foreach ($values as $lang => $value)
|
||||||
{
|
{
|
||||||
if ($value === Configuration::get($key, $lang, $id_shop_group, $id_shop))
|
$stored_value = Configuration::get($key, $lang, $id_shop_group, $id_shop);
|
||||||
|
if ((!is_numeric($value) && $value === $stored_value) || (is_numeric($value) && $value == $stored_value))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
// If key already exists, update value
|
// If key already exists, update value
|
||||||
|
|||||||
Reference in new issue
Block a user