View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
06507 | Bug reports | Central participant database | public | 2012-08-20 00:44 | 2012-09-20 14:12 |
Reporter | lolo | Assigned To | jcleeland | ||
Priority | normal | Severity | minor | ||
Status | closed | Resolution | fixed | ||
Product Version | 2.00RC9 | ||||
Fixed in Version | 2.00+ | ||||
Summary | 06507: Central Participant Database: admin language should not influence on the mapping of token attributes | ||||
Description | This is related to issues 06429, 06381 and 06506, but this one concerns the mapping of attributes. When mapping participant attributes to token attributes (in the process of adding a participant to a survey), resulting token attribute descriptions are not filled if admin language is different from the participant attribute language. If admin language and participant attribute language are the same (let's say english), then the resulting token attribute description is correctly populated with the attribute name. If, on the other hand, admin language is french, then when mapping the same attribute to a survey, the resulting token attribute will also be called attribute_cpdb_xxxx but the description will be empty (instead of using 'Age'). And as another result this token attribute will be displayed as attribute_cpdb_xxxx in the tokens list instead of 'Age'. I think the right way to do this is to use the name of the attribute regardless of admin language (which is obviously currently used to determine the attribute description to use in the process). If the original attribute is multi-lingual (has n names for n languages), then the target survey language should be used to choose the right language description to copy over. | ||||
Steps To Reproduce |
| ||||
Tags | No tags attached. | ||||
Bug heat | 4 | ||||
Complete LimeSurvey version number (& build) | 120817 | ||||
I will donate to the project if issue is resolved | Yes | ||||
Browser | Safari 5.1.7 (Mac) | ||||
Database type & version | Mysql 5.5.24 | ||||
Server OS (if known) | Linux 2.6.27.52 | ||||
Webserver software & version (if known) | Apache 2 | ||||
PHP Version | 5.3.14 | ||||
LimeSurvey: Yii 5067b570 2012-09-10 23:40:24 Details Diff |
Fixed issue 06507 - Central Participant Database: Admin language should not influence on the mapping of token attributes. System now checks if there is a matching description in the default language of the survey, then if not if there is a matching description in the currently selected admin language, then finally defaults to the first returned language. |
Affected Issues 06507 |
|
mod - application/models/Participants.php | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2012-08-20 00:44 | lolo | New Issue | |
2012-08-20 13:15 | c_schmitz | Status | new => assigned |
2012-08-20 13:15 | c_schmitz | Assigned To | => jcleeland |
2012-08-22 21:29 | lolo | Issue Monitored: lolo | |
2012-08-22 22:59 | c_schmitz | Category | Tokens => Central participant database |
2012-09-11 08:42 | jcleeland | Changeset attached | => LimeSurvey Yii 5067b570 |
2012-09-11 08:42 | jcleeland | Note Added: 20655 | |
2012-09-11 08:42 | jcleeland | Resolution | open => fixed |
2012-09-11 08:51 | jcleeland | Status | assigned => resolved |
2012-09-11 08:51 | jcleeland | Fixed in Version | => 2.00+ |
2012-09-20 14:12 | c_schmitz | Status | resolved => closed |
2021-08-02 17:20 | guest | Bug heat | 2 => 4 |