View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0007871 | OXID eShop (all versions) | 4.06. Language and translations | public | 2025-12-16 10:17 | 2025-12-16 10:17 |
| Reporter | EsyonStephan | Assigned To | |||
| Priority | normal | Severity | major | Reproducibility | always |
| Status | new | Resolution | open | ||
| Product Version | 7.0.2 | ||||
| Summary | 0007871: Function getConfigLanguageValues return wrong array keys | ||||
| Description | The 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 Reproduce | Create 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'] | ||||
| Tags | Views | ||||
| Theme | Not defined | ||||
| Browser | Not defined | ||||
| PHP Version | 8.1 | ||||
| Database Version | MySQL 5.7 | ||||