View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0005849 | OXID eShop (all versions) | 2.3. Extensions (modules, themes) | public | 2014-08-13 12:48 | 2022-01-31 09:15 |
Reporter | role | Assigned To | |||
Priority | normal | Severity | feature | Reproducibility | always |
Status | assigned | Resolution | open | ||
Summary | 0005849: shop doesn't create multilang-columns on activate of module | ||||
Description | A module with a multilang-model has a title. The columns of the title are: title and title_1. Our Shop contains several languages. When I activate the module the multilang doesn't work because the oxid framework only checks for multilanguage columns after adding a new language and regenerating the views. | ||||
Steps To Reproduce | Create some languages. Install Module (steps to install are in Readme.txt of attachment) Regenerate Views. | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Theme | All | ||||
Browser | All | ||||
PHP Version | Not defined | ||||
Database Version | Not defined | ||||
|
Reminder sent to: role Hi, Sorry we cant reproduce such kind behavior, could you please provide us more details information. In which table do you would like that would be created multilang-columns on activate of module ? If you use your created tables then, you need add to config the tables which used by module on activation: $this->aMultiLangTables = null; Best regards, Jurate |
|
Hi, > If you use your created tables then, you need add to config the tables which > used by module on activation: > $this->aMultiLangTables = null; Yes, it is already in the Readme of the module! Did you read the module Readme? > Sorry we cant reproduce such kind behavior, could you please provide us more details information. > In which table do you would like that would be created multilang-columns on activate of module ? on activating module "test" the table "ratest" will be created (1st time) The OXID-Framework doesn't create language-columns in the ratest table for languages being created before. Only new added languages will be created successfully. Best regards, Robin |
|
currently there are no such API in OXID that on module activation all multi language tables should me managed with adding missing multilingual fields. i moving it as feature request. |
|
I think it is a bug, because the should add the missing fields manuelly in sql. If you have 50 shops it is imposition to insert the sqls. |
|
yes, currently you should do manually, o add some script on module activation, which will take care about that. |
|
Okay. I think you should implement a script which checks the table columns whether the correct schema exists. Add it in the oxsystemcheck controller. |