[-] 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:
rGaillard
2013-12-05 17:17:35 +01:00
parent 3975599023
commit d50999fde0
+2 -1
View File
@@ -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