View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
17594Bug reportsSurvey participants (Tokens)public2021-12-07 14:44
Reporterkemweb Assigned Toc_schmitz  
PrioritynoneSeveritytweak 
Status closedResolutionfixed 
Product Version3.24.3 
Summary17594: Token language does not work in upper case
Description

If I import user with language in upper case "EN" the survey falls back to the default language.
It works only with lower case "en".
This is unexpected and confusing.

TagsNo tags attached.
Bug heat6
Complete LimeSurvey version number (& build)3.24.3
I will donate to the project if issue is resolvedNo
Browser
Database type & version3.24.3
Server OS (if known)
Webserver software & version (if known)
PHP Version7.4.23

Users monitoring this issue

There are no users monitoring this issue.

Activities

galads

galads

2021-09-16 11:03

reporter   ~66497

Can you please provide more precise instructions on how to reproduce? Preferably in a step-by-step manner, like 1) Go to question x; 2) Click button y; 3) Expected z but saw v. Thank you very much.

kemweb

kemweb

2021-09-17 09:03

reporter   ~66506

  1. Create a survey with two languages (e.g. German and English).
  2. Import a csv with participants including languages in upper case (DE,EN)
  3. View participants overview.
c_schmitz

c_schmitz

2021-11-26 17:08

administrator   ~67596

Last edited: 2021-11-26 17:27

Some check on import if the language string is correct would be necessary.
Best would be to do a strict comparison and don't allow to import it at all.
Also only allow to set a language that exists in the survey.

c_schmitz

c_schmitz

2021-11-26 18:01

administrator   ~67597

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

c_schmitz

c_schmitz

2021-11-26 18:17

administrator   ~67598

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

c_schmitz

c_schmitz

2021-12-01 09:28

administrator   ~67619

New version released

c_schmitz

c_schmitz

2021-12-07 14:40

administrator   ~67728

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

c_schmitz

c_schmitz

2021-12-07 14:44

administrator   ~67729

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

Related Changesets

LimeSurvey: master 08eaad8e

2021-11-26 18:00:58

c_schmitz

Details Diff
Fixed issue 17594: Token language does not work in upper case
Dev Rule now makes sure that the language exists in the survey (or is empty)
Affected Issues
17594
mod - application/models/Token.php Diff File

LimeSurvey: master 39f1308c

2021-11-26 18:17:41

c_schmitz

Details Diff
Fixed issue 17594: Token language does not work in upper case
Dev Better error message
Affected Issues
17594
mod - application/models/Token.php Diff File

LimeSurvey: master d1cb11b3

2021-12-07 14:40:22

c_schmitz

Details Diff
Fixed issue 17594: Token language does not work in upper case Affected Issues
17594
mod - application/models/Token.php Diff File

LimeSurvey: master 012a9ffd

2021-12-07 14:44:05

c_schmitz

Details Diff
Fixed issue 17594: Token language does not work in upper case
Dev PSR fix
Affected Issues
17594
mod - application/models/Token.php Diff File

Issue History

Date Modified Username Field Change
2021-09-15 10:22 kemweb New Issue
2021-09-16 11:03 galads Note Added: 66497
2021-09-16 11:03 galads Bug heat 0 => 2
2021-09-16 11:03 galads Assigned To => galads
2021-09-16 11:03 galads Status new => feedback
2021-09-17 09:03 kemweb Note Added: 66506
2021-09-17 09:03 kemweb Bug heat 2 => 4
2021-09-17 09:03 kemweb Status feedback => assigned
2021-09-17 14:09 galads Status assigned => acknowledged
2021-11-26 17:08 c_schmitz Note Added: 67596
2021-11-26 17:08 c_schmitz Bug heat 4 => 6
2021-11-26 17:27 c_schmitz Note Edited: 67596
2021-11-26 18:01 c_schmitz Changeset attached => LimeSurvey master 08eaad8e
2021-11-26 18:01 c_schmitz Note Added: 67597
2021-11-26 18:01 c_schmitz Assigned To galads => c_schmitz
2021-11-26 18:01 c_schmitz Resolution open => fixed
2021-11-26 18:01 c_schmitz Status acknowledged => resolved
2021-11-26 18:17 c_schmitz Changeset attached => LimeSurvey master 39f1308c
2021-11-26 18:17 c_schmitz Note Added: 67598
2021-12-01 09:28 c_schmitz Note Added: 67619
2021-12-01 09:28 c_schmitz Status resolved => closed
2021-12-07 14:40 c_schmitz Changeset attached => LimeSurvey master d1cb11b3
2021-12-07 14:40 c_schmitz Note Added: 67728
2021-12-07 14:44 c_schmitz Changeset attached => LimeSurvey master 012a9ffd
2021-12-07 14:44 c_schmitz Note Added: 67729