View Issue Details

This bug affects 1 person(s).
 8
IDProjectCategoryView StatusLast Update
16530Bug reportsExpression Managerpublic2021-08-04 15:26
ReporterXsaron Assigned Toollehar  
PrioritynoneSeverityblock 
Status closedResolutionfixed 
Product Version4.3.5 
Summary16530: Array filter takes 'Shown' in default language instead of active language
Description

When using an array filter to fill a 5 point choice array with the responses from a ranking question in a multilingual survey, the array filter uses the values from the default survey language instead of the language that the survey was started in.

Steps To Reproduce

1) Create a new survey with Dutch as the default language
2) Add English as additional language
3) Create a new question group
4) Add a ranking question
5) Add 6 response options
6) Fill in the Dutch (default language) values for the response options
7) Fill in the English (additional language) values for the response options
8) Restrict the minimum/maximum number of responses to eg. 5 as we want exactly 5 responses to be selected in the ranking
9) Add a 5 point choice array
10) Add an array filter in the Logic tab to this array with the name of the ranking question created in 4)
11) Add 5 sub questions (as we wanted 5 parameters in the ranking) for the Y-axis
12) Fill in the expression with the name of the ranking question created in 4) and have it select the first row of the submitted ranking. Let's say that 'Attributen' is the name of the question created in 4), thus the first Subquestion would be {Attributen_1.shown}.
13) Do the same accordingly for the next 4 subquestions of the question created in 9) (eg. the second subquestion will be {Attributen_2.shown} ...3.. etc.)
14) Check logic for the English version for the question created in 9) and hover the expression for subquestion 1 (Attributen_1.shown). The JavaScript will show you a the list of responses from 'Attributen' in the default (Dutch) language, however this should be the English one!
15) Preview your survey in the additional language, English
16) Select and rank 5 items for the question created in 4)

Expected behavior: The 5 point choice array is filled up with the responses from the ranking in the same language as the survey is taken, in this case English (additional language)
Actual behavior: The 5 point choice array is filled up with the responses from the ranking but in the WRONG language, the subquestion texts from the default (Dutch) language are shown instead of the actual language in which the survey is taken

Issues:

  • The actual behavior is different from the expected behavior.
  • The expressions/variables do not allow to select an answer in a desired language. Eg. if a subquestion number is SQ1 and there would be 2 languages, the above would not be an issue if the language could be selected by a parameter e.g. SQ[0] with 0 referring to the default language or 1 (SG[1]) referring to the first additional language etc. This is currently not possible.
Additional Information

Expected behavior: The 5 point choice array is filled up with the responses from the ranking in the same language as the survey is taken, in this case English (additional language)
Actual behavior: The 5 point choice array is filled up with the responses from the ranking but in the WRONG language, the subquestion texts from the default (Dutch) language are shown instead of the actual language in which the survey is taken

Issues:

  • The actual behavior is different from the expected behavior.
  • The expressions/variables do not allow to select an answer in a desired language. Eg. if a subquestion number is SQ1 and there would be 2 languages, the above would not be an issue if the language could be selected by a parameter e.g. SQ[0] with 0 referring to the default language or 1 (SG[1]) referring to the first additional language etc. This is currently not possible.
TagsNo tags attached.
Attached Files
Bug heat8
Complete LimeSurvey version number (& build)Versie 4.3.5+200721
I will donate to the project if issue is resolvedNo
BrowserMicrosoft Edge Chromium, Google Chrome, Mozilla firefox
Database type & versionno idea where to find this, it's a clean installation
Server OS (if known)hosted at one.com
Webserver software & version (if known)
PHP Version7

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2020-07-28 08:36

developer   ~59114

Little sample lss file please.

Need only 2 questions

ollehar

ollehar

2021-03-03 14:42

administrator   ~62648

For us to be able to investigate this issue please attach a 2 question sample survey demonstrating the issue, either as .lss file (survey structure) or (even better) as .lsa file (survey archive).

Just attach it to this issue and we will have a look.
Thank you!

Xsaron

Xsaron

2021-03-03 16:19

reporter   ~62689

Hi all, thanks for your follow up and my apologies for not yet delivering the test files. Back then I was rushing towards the deadline of my masters thesis, I was unable to create the test file. Do you still need it?

ollehar

ollehar

2021-03-03 16:21

administrator   ~62690

Feel free to test on the latest LS4 version. If you can reproduce the issue, attach the survey you used (as small as possible, preferably).

galads

galads

2021-08-04 15:26

reporter   ~65831

Hello Xsaron,

we have asked for feedback on this issue. Because we did not get an answer we assume that the issue is resolved.
However, should you be able to reproduce the issue using the latest version, please feel free to re-open the issue and give us exact details on how to reproduce it.

Thank you and best regards,

galads

Issue History

Date Modified Username Field Change
2020-07-28 00:27 Xsaron New Issue
2020-07-28 00:27 Xsaron File Added: 2020-07-28 00_25_02-Digital transformation.png
2020-07-28 08:36 DenisChenu Note Added: 59114
2021-03-03 14:42 ollehar Assigned To => ollehar
2021-03-03 14:42 ollehar Status new => feedback
2021-03-03 14:42 ollehar Note Added: 62648
2021-03-03 16:19 Xsaron Note Added: 62689
2021-03-03 16:19 Xsaron Status feedback => assigned
2021-03-03 16:21 ollehar Note Added: 62690
2021-03-05 17:24 ollehar Status assigned => feedback
2021-08-04 15:26 galads Status feedback => closed
2021-08-04 15:26 galads Resolution open => fixed
2021-08-04 15:26 galads Note Added: 65831
2021-08-04 15:26 galads Bug heat 6 => 8