[-] 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:
@@ -314,7 +314,8 @@ class ConfigurationCore extends ObjectModel
|
||||
$result = true;
|
||||
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;
|
||||
|
||||
// If key already exists, update value
|
||||
|
||||
Reference in New Issue
Block a user