View Issue Details

IDProjectCategoryView StatusLast Update
0002699OXID eShop (all versions)4.06. Language and translationspublic2011-04-09 14:41
ReporterHelmut L. Assigned To 
PriorityhighSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version4.5.0_beta4 
Fixed in Version4.5.0 revision 34568 
Summary0002699: max lang id in database is only retrieved from main table
DescriptionThe oxDbMetaDataHandler determines the max lang id only by checking the oxarticles table.
But if you have more than iLangPerTable languages, the language fields are not only in oxarticles but also in oxarticles_set1, oxarticles_set2, ...
Thus for all languages past the iLangPerTable limit, oxDbMetaDataHandler will always try to add the same language fields again.

To determine the actual max lang id instead of oxarticles the view oxv_oxarticles which contains all language fields should be checked.
Additional InformationEnterprise Edition
/core/oxdbmetadatahandler.php, line 236

is currently:
$aFields = $this->getFields( "oxarticles" );

should be:
$aFields = $this->getFields( getViewName("oxarticles", -1) );
TagsNo tags attached.
Theme
BrowserAll
PHP Versionany
Database Versionany

Relationships

related to 0002471 resolvedalfonsas_cirtautas Not possible to create more than 8 languages 
related to 0002700 resolvedalfonsas_cirtautas oxDbMetaDataHandler can not add multiple languages at once to the database 

Activities

alfonsas_cirtautas

2011-04-09 14:41

reporter   ~0004349

Fixed by refactoring oxDbMetaDataHandler::getCurrentMaxLangId() method