View Issue Details

IDProjectCategoryView StatusLast Update
0005849OXID eShop (all versions)2.3. Extensions (modules, themes)public2022-01-31 09:15
Reporterrole Assigned To 
PrioritynormalSeverityfeatureReproducibilityalways
Status assignedResolutionopen 
Summary0005849: shop doesn't create multilang-columns on activate of module
DescriptionA 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 ReproduceCreate some languages.
Install Module (steps to install are in Readme.txt of attachment)
Regenerate Views.
TagsNo tags attached.
Attached Files
test.zip (2,466 bytes)
ThemeAll
BrowserAll
PHP VersionNot defined
Database VersionNot defined

Activities

jurate.baseviciene

2014-08-26 09:40

reporter   ~0010090

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

role

2014-08-26 10:36

reporter   ~0010091

Last edited: 2014-08-28 08:13

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

Linas Kukulskis

2014-12-03 13:54

reporter   ~0010375

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.

role

2014-12-04 23:50

reporter   ~0010379

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.

Linas Kukulskis

2014-12-05 10:21

reporter   ~0010381

yes, currently you should do manually, o add some script on module activation, which will take care about that.

role

2014-12-05 10:38

reporter   ~0010382

Okay. I think you should implement a script which checks the table columns whether the correct schema exists. Add it in the oxsystemcheck controller.