View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
06429Bug reportsSurvey participants (Tokens)public2012-08-16 10:23
Reporterlolo Assigned Tojcleeland  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version2.00RC8 
Fixed in Version2.00RC9 
Summary06429: Central Participant Database: admin language should not determine the list of available attributes
Description

This is similar to issue 06381, but for attributes instead of surveys.
In Participant panel, when selecting 'Attribute Management', only attributes whose language match the admin language are displayed. Attributes in other languages are missing/discarded.

Admin should be able to edit all attributes regardless of their language settings.

This issue seems to also impact the attributes mapping process (when adding a participant to a survey) : only attributes having the same language as admin lang. are shown and selectable.

Filtering seems to be performed in method ParticipantAttributeNames::getAttributes().

Steps To Reproduce
  • log in as admin using english language

  • select "Central Participant Database/Panel", then "Attribute Management"

  • create new attribute (just set attribute name, and submit)
    => attribute appears in list

  • log out

  • log in as admin using french language

  • select "Central Participant Database/Panel", then "Attribute Management"
    => list of attributes is empty

TagsNo tags attached.
Bug heat6
Complete LimeSurvey version number (& build)120721
I will donate to the project if issue is resolvedNo
BrowserMozilla 14.0.1 (Win)
Database type & versionMysql 5.5.24
Server OS (if known)Linux 2.6.27.52
Webserver software & version (if known)Apache 2
PHP Version5.3.14

Users monitoring this issue

There are no users monitoring this issue.

Activities

lolo

lolo

2012-08-05 15:16

reporter   ~20196

Actually the filtering seems to be performed in more places than the suggested method.
Probably that all references to Yii::app()->session['adminlang'] should be checked for appropriate use.

jcleeland

jcleeland

2012-08-07 06:24

reporter   ~20235

Fix committed to Yii branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=9254

jcleeland

jcleeland

2012-08-07 06:26

reporter   ~20236

lolo,this took quite a bit of modifications - was just a missing element. Could you have a play and let me know if it works more like you would expect now?

Thanks, Jason

lolo

lolo

2012-08-07 14:52

reporter   ~20244

Hi Jason, I played for a while with latest version from git and so far it seems to be behaving pretty well (as far as attributes are concerned). I cannot guarantee it to be absolutely flawless of course but at least the bits I tried did work.
I'll raise another ticket should I come across a new glitch anyway.
Thanks again.

c_schmitz

c_schmitz

2012-08-16 10:23

administrator   ~20445

Version 2.00 RC 9 released.

Related Changesets

LimeSurvey: Yii ac463fad

2012-08-06 21:22:53

jcleeland

Details Diff
Fixed issue 06429 admin language should not determine the list of available attributes. Attributes now displayed in admin language first, then in the first found language if there is no admin language translation available Affected Issues
06429
mod - application/controllers/admin/participantsaction.php Diff File
mod - application/models/ParticipantAttributeNames.php Diff File
add - application/models/ParticipantAttributeNamesLang.php Diff File
mod - application/models/Participant_attribute.php Diff File
mod - application/views/admin/participants/attributeControl_view.php Diff File
mod - scripts/admin/attributeControl.js Diff File

Issue History

Date Modified Username Field Change
2012-08-05 15:09 lolo New Issue
2012-08-05 15:16 lolo Note Added: 20196
2012-08-05 17:51 c_schmitz Assigned To => jcleeland
2012-08-05 17:51 c_schmitz Status new => assigned
2012-08-07 06:24 jcleeland Changeset attached => LimeSurvey Yii ac463fad
2012-08-07 06:24 jcleeland Note Added: 20235
2012-08-07 06:24 jcleeland Resolution open => fixed
2012-08-07 06:26 jcleeland Note Added: 20236
2012-08-07 14:52 lolo Note Added: 20244
2012-08-09 06:38 jcleeland Status assigned => resolved
2012-08-16 00:15 c_schmitz Fixed in Version => 2.00RC9
2012-08-16 10:23 c_schmitz Note Added: 20445
2012-08-16 10:23 c_schmitz Status resolved => closed
2016-12-08 10:39 c_schmitz Category Tokens => Survey participants (Tokens)