View Issue Details

This bug affects 2 person(s).
 10
IDProjectCategoryView StatusLast Update
16190Bug reportsSurvey takingpublic2022-03-17 09:31
Reporterymca Assigned Togalads  
PrioritylowSeveritypartial_block 
Status closedResolutionfixed 
Product Version4.2.0 
Summary16190: The sort button not sorting answers for other languages
Description
  1. Clicked the "Sort answers alphabetically" button in the "display" answer area.
  2. Previewed the question.
  3. Changed the language of the survey and saw there's no sorting on the rest of the languages.

I have tried to workaround that problem with this tweak, but it didn't work for me.
https://www.limesurvey.org/forum/can-i-do-this-with-limesurvey/96740-multilingual-surve-sorting-responses-alphabetically-in-a-2nd,-3rd-language/197967

TagsNo tags attached.
Bug heat10
Complete LimeSurvey version number (& build)Version 4.2.0+200422
I will donate to the project if issue is resolvedNo
Browser
Database type & versionsame
Server OS (if known)
Webserver software & version (if known)
PHP Versionsame

Users monitoring this issue

There are no users monitoring this issue.

Activities

galads

galads

2021-08-31 13:26

reporter   ~66240

Please update to the latest version and check if the bug can still be reproduced. Thank you.

k____k

k____k

2022-03-16 09:04

reporter   ~68694

Last edited: 2022-03-16 17:29

Can confirm that the problem exists in the latest version 5+. The issue lies here: https://github.com/LimeSurvey/LimeSurvey/blob/master/application/models/Question.php#L722
The problem is that the $this->survey->language returns the survey base language and not the "survey language". Unfortunately I was not able to figure out how to get the survey language properly, so I would like to get some help with this. At the moment I used this $SESSION['survey'. $this->sid]['s_lang']

Hope this helps someone out who could make a proper PR out of this.

k____k

k____k

2022-03-16 22:08

reporter   ~68704

I went ahead and installed a fresh copy of 5.3.4+220309 and it seems that this issue is fixed and alphasort works. So sorry for saying it does not work in the latest version - I now need to understand what exactly causes this issue on our instance.

Issue History

Date Modified Username Field Change
2020-04-26 16:18 ymca New Issue
2020-04-27 10:57 ollehar Product Version => 4.2.0
2021-03-10 17:10 ollehar Assigned To => ollehar
2021-03-10 17:10 ollehar Status new => feedback
2021-08-31 09:00 c_schmitz Bug heat 2 => 0
2021-08-31 09:01 c_schmitz Assigned To ollehar =>
2021-08-31 09:01 c_schmitz Status feedback => new
2021-08-31 13:26 galads Note Added: 66240
2021-08-31 13:26 galads Bug heat 0 => 2
2021-08-31 13:26 galads Assigned To => galads
2021-08-31 13:26 galads Status new => feedback
2022-03-16 09:04 k____k Note Added: 68694
2022-03-16 09:04 k____k Bug heat 2 => 4
2022-03-16 09:05 guest Bug heat 4 => 10
2022-03-16 17:29 galads Priority none => low
2022-03-16 17:29 galads Status feedback => confirmed
2022-03-16 17:29 galads Zoho Project Synchronization => |Yes|
2022-03-16 22:08 k____k Note Added: 68704
2022-03-17 09:31 galads Status confirmed => closed
2022-03-17 09:31 galads Resolution open => fixed