View Issue Details

IDProjectCategoryView StatusLast Update
0007871OXID eShop (all versions)4.06. Language and translationspublic2025-12-17 15:40
ReporterEsyonStephan Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status acknowledgedResolutionopen 
Product Version7.3.0 
Summary0007871: Function getConfigLanguageValues return wrong array keys
DescriptionThe function getConfigLanguageValues from the Language class returns an array with wrong keys for Sub-Shops when a language id is missing. For example:
Shop Admin Board Languages:
ID = 0, Language = DE
ID = 2, Language = FR

Expected array:
[0 => 'de', 2 => 'fr']
Actual result:
[0 => 'de', 1 => 'fr']

This is a big problem when generating views.
Steps To ReproduceCreate a Main Webshop and a Sub-Shop. Create multiple languages for the Sub-Shop. For example:
ID = 0 for Deutsch,
ID =1 for English,
ID =2 for French

Delete the language English (ID =1), so that only ID = 1 for Deutsch and ID = 2 for French remain. Start the view generation with the console command:
'./vendor/bin/oe-eshop-db_views_generate'

While gernerating views for the Sub-Shop, the language array that is used is: [0 => 'de', 1 => 'fr'] while it should be [0 => 'de', 2 => 'fr']
TagsViews
ThemeNot defined
BrowserNot defined
PHP Version8.1
Database VersionMySQL 5.7

Relationships

related to 0006081 assignedHR Views get broken when Language base IDs of specific Languages deviate in Subshops 

Activities

QA

2025-12-17 15:39

administrator   ~0018302

Acknowledged

DR