In-Portal Issue Tracker - In-Portal CMS
Viewing Issue Advanced Details
692 [In-Portal CMS] Database bug report always 2010-04-10 07:25 2010-05-11 02:59
alex  
alex  
normal  
closed 5.0.3-B2  
fixed  
 
none 5.0.3-B2  
http://groups.google.com/group/in-portal-bugs/browse_thread/thread/4718b08bce97334d
0
0000692: Translatable fields are not always created during table scan
Each field in unit config can have formatter class set. When formatter is set to "kMultiLanguage" class, then during table scanning (when adding new language or pressing "Rebuild Multilingual Fields" in "System Tools" section) missing translatable fields are created, so we have 1 field for each language, like "l<LANGUAGE_ID>_<FIELD_NAME>".

    * When "<FIELD_NAME>" is found in table, then it's parameters are used to create new translatable fields.
    * When "<FIELD_NAME>" is not found, then we create translatable fields based on information from field declaration in unit config.

There is an error in regular expression, that checks, that we already have given field created in table resulting field being reported as existing, but it doesn't in fact. For example when you have field "DestName" in table and you have translatable field "Name", then "DestName" is matched instead of "Name" and none translatable fields are added.
related to 0000279closed  (5.1.0)alex Phrases of state and country names 
patch translatable_fields_not_added_during_table_scan.patch (682) 2010-04-10 07:25
http://tracker.in-portal.org/file_download.php?file_id=449&type=bug
Issue History
2010-05-11 02:59 alex Note Added: 0002089
2010-05-11 02:59 alex Status resolved => closed
2010-04-11 08:39 alex Note Added: 0001846
2010-04-11 08:39 alex Status reviewed and tested => resolved
2010-04-11 08:39 alex Fixed in Version => 5.0.3-B2
2010-04-11 08:39 alex Resolution open => fixed
2010-04-11 08:39 alex Assigned To !COMMUNITY => alex
2010-04-11 08:39 alex Changeset attached 5.0.x r13371
2010-04-10 23:41 Dmitry Note Added: 0001842
2010-04-10 23:41 Dmitry Status needs testing => reviewed and tested
2010-04-10 07:26 alex Relationship added related to 0000279
2010-04-10 07:26 alex Assigned To => !COMMUNITY
2010-04-10 07:26 alex Developer => alex
2010-04-10 07:26 alex Status active => needs testing
2010-04-10 07:26 alex Reference => http://groups.google.com/group/in-portal-bugs/browse_thread/thread/4718b08bce97334d
2010-04-10 07:25 alex New Issue
2010-04-10 07:25 alex File Added: translatable_fields_not_added_during_table_scan.patch

Notes
(0001842)
Dmitry   
2010-04-10 23:41   
Patch has been tested okay.
(0001846)
alex   
2010-04-11 08:39   
Fix committed to 5.0.x branch. Commit Message:

Fixes 0000692: Translatable fields are not always created during table scan
(0002089)
alex   
2010-05-11 02:59   
Closing all tasks from released versions.