In-Portal Issue Tracker

Welcome to the In-Portal Open Source CMS Issue Tracker! This is a central management / tracking tool for all types of tasks / issues / bugs for the In-Portal Project. Before reporting any issues, please make sure to read the Guide into Issue Tracker and How to Properly Test and Report Bugs!

Dependency Graph View Issue ] Relation Graph ] Vertical ]
related to child of duplicate of

Viewing Issue Simple Details
ID Category Type Reproducibility Date Submitted Last Update
0000848 [In-Portal CMS] Database bug report always 2010-08-31 14:06 2011-03-30 09:53
Reporter alex View Status public  
Assigned To alex
Priority normal Resolution fixed  
Status closed      
Summary 0000848: Copying missing translatable data when Primary language is changed
Description There are 2 types of columns in database tables, that In-Portal uses:
* columns, that have different value on each language (e.g. l1_Name, l2_Name, l3_Name, l1_Description, etc.);
* columns, that have same value on each language (Status, FieldName, Type).

In case, when language-dependent column doesn't have value on given language, then value from primary language is displayed. All works fine, until primary language is changed.

Best way to solve this is to copy data language-dependent data from old primary language columns into new primary language columns.

I think, that kMultiLanguageHelper is perfectly suited for this task, since it already keeps track of all language-dependent columns through all database. For each language-dependent column will issue database query that will copy only missing data, so any entered data on new primary language will be preserved.

Code described above should on primary language change (Set Primary button on toolbar or primary checkbox on language editing).
Additional Information

Web Development by Intechnic
In-Portal Open Source CMS
In-Portal Open Source CMS
Copyright © 2000 - 2009 MantisBT Group

Powered by Mantis Bugtracker