[*] BO: Add an option to choose to not import the behavior of taxes displaying for the groups in localization pack import

This commit is contained in:
Rémi Gaillard
2013-10-23 18:22:53 +02:00
parent b38073ad72
commit e1887425fa
3 changed files with 13 additions and 2 deletions
+7 -1
View File
@@ -52,6 +52,7 @@ class LocalizationPackCore
$res &= $this->installConfiguration($xml);
$res &= $this->installModules($xml);
$res &= $this->_installLanguages($xml, $install_mode);
$res &= $this->updateDefaultGroupDisplayMethod($xml);
if ($res && isset($this->iso_code_lang))
{
@@ -240,7 +241,7 @@ class LocalizationPackCore
}
}
}
return $this->updateDefaultGroupDisplayMethod($xml);
return true;
}
protected function _installCurrencies($xml, $install_mode = false)
@@ -388,6 +389,11 @@ class LocalizationPackCore
return true;
}
protected function _installGroups($xml)
{
return $this->updateDefaultGroupDisplayMethod($xml);
}
protected function updateDefaultGroupDisplayMethod($xml)
{
+1 -1
View File
@@ -930,7 +930,7 @@ class ValidateCore
*/
public static function isLocalizationPackSelection($data)
{
return ($data === 'states' || $data === 'taxes' || $data === 'currencies' || $data === 'languages' || $data === 'units');
return in_array((string)$data, array('states', 'taxes', 'currencies', 'languages', 'units', 'groups'));
}
/**