We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
we have insufficient handling for multilanguage fields in oxshops. Looks like a bug.
line 207ff in class oxid_modules_config/Core/ConfigImport.php; method importShopsConfig
for ($i = 1; $i <= 3; $i++) { $oShop->setLanguage($i); foreach ($aOxShopSettings as $sVarName => $mVarValue) { $iPosLastChar = strlen($sVarName) - 1; $iPosUnderscore = $iPosLastChar - 1; if ($sVarName[$iPosUnderscore] == '_' && $sVarName[$iPosLastChar] == $i) { $sFiledName = substr($sVarName, 0, strlen($sVarName) - 2); $aOxShopSettings[$sFiledName] = $mVarValue; } } $oShop->assign($aOxShopSettings); $oShop->save(); }
The text was updated successfully, but these errors were encountered:
This is more readable:
oxid_modules_config/Core/ConfigImport.php
Lines 207 to 219 in d01f87a
Sorry, something went wrong.
I think the loop should loop over all languages instead only going from 0-3, or does anyone see a issue with that?
No branches or pull requests
we have insufficient handling for multilanguage fields in oxshops. Looks like a bug.
line 207ff in class oxid_modules_config/Core/ConfigImport.php; method importShopsConfig
for ($i = 1; $i <= 3; $i++) { $oShop->setLanguage($i); foreach ($aOxShopSettings as $sVarName => $mVarValue) { $iPosLastChar = strlen($sVarName) - 1; $iPosUnderscore = $iPosLastChar - 1; if ($sVarName[$iPosUnderscore] == '_' && $sVarName[$iPosLastChar] == $i) { $sFiledName = substr($sVarName, 0, strlen($sVarName) - 2); $aOxShopSettings[$sFiledName] = $mVarValue; } } $oShop->assign($aOxShopSettings); $oShop->save(); }
The text was updated successfully, but these errors were encountered: