View Issue Details

IDProjectCategoryView StatusLast Update
0006320OXID eShop (all versions)2.3. Extensions (modules, themes)public2016-02-01 10:53
Status acknowledgedResolutionopen 
Product Version4.9.0 / 5.2.0 
Target VersionFixed in Version 
Summary0006320: Different themes can't start with same id
DescriptionCurrently theme settings is loaded like this:
$sModule = oxConfig::OXMODULE_THEME_PREFIX . $this->getConfigParam('sCustomTheme'); // azure
$sModuleSql = $sModule ? " oxmodule LIKE " . $oDb->quote($sModule . "%") : " oxmodule='' "; // azure%

So in case we have 2 themes 'azure' and 'azure_v2'. Themes Ids are very similar. Method oxConfig::_loadVarsFromDb will find all the configs for both themes and second theme settings will be used.
Steps To Reproduce1) Go to admin Extensions -> Themes, select azure theme and change setting "Icon size (width*height)" to 200*200 and click save. Go to home page and check if setting affected eShop ("TOP OF THE SHOP" sidebar images will be too big).
2) Now add settings for theme called: azure_v2
Settings should be added via SQL:
('7ee1082ea35a75f83beed1bd3ae8fbd0', 'oxbaseshop', 'theme:azure_v2', 'sIconsize', 'str', 0x8064a213b1, NOW() );
3) Check homepage again. your settings for "azure" theme will not work anymore.
TagsNo tags attached.
ThemeNot defined
BrowserNot defined
PHP VersionNot defined
MySQL VersionNot defined


There are no notes attached to this issue.