View Issue Details

IDProjectCategoryView StatusLast Update
0007871OXID eShop (all versions)4.06. Language and translationspublic2025-12-16 10:17
ReporterEsyonStephan Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status newResolutionopen 
Product Version7.0.2 
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:
'/app/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

Activities

There are no notes attached to this issue.