View Issue Details

This bug affects 1 person(s).
 8
IDProjectCategoryView StatusLast Update
10537Bug reportsSurvey takingpublic2016-02-23 08:51
ReporterStCripps Assigned ToLouisGac 
PriorityurgentSeveritypartial_block 
Status closedResolutionfixed 
Product Version2.50.x 
Summary10537: Rank question display error on page re-render
Description

If you re-render a page AFTER completing a Ranking question, the answer is corrupted. The re-render might happen if you don't complete something correctly on the page (and you get the warning message) or if you go to another page and come back again.

Every answer in the right box becomes the first item in the list. The remaining items in the list move back to the left box. See the attached screenshots.

I get the same behaviour in Edge / Chrome and whether the question is mandatory and whether the minimum number of answers is set or not.

Steps To Reproduce

Create a ranking question with several answers. Test the survey (you can't do it from preview as you don't have a next button). Have another mandatory question in the group so you can force the re-render by getting an error message on submit, or have more than one page to go previous / next.

Complete the ranking list.
Force a re-render.
The list is now corrupt.

TagsNo tags attached.
Attached Files
Rank-broken.png (122,291 bytes)
Rank-noJava.png (30,916 bytes)   
Rank-noJava.png (30,916 bytes)   
Bug heat8
Complete LimeSurvey version number (& build)2.5 160219
I will donate to the project if issue is resolvedNo
BrowserEdge / Chrome
Database type & versionMySQL 5.1
Server OS (if known)Linux (hosted - not sure which version)
Webserver software & version (if known)Apache (hosted - not sure which version)
PHP Version5.4.45

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2016-02-19 16:02

developer   ~35462

Last edited: 2016-02-19 16:02

Hi,

Can you try with decativate JS to see if it's js the issue or php please.

And send a lss file with only one ranking question and one 'mandatory' question (to show the error).

StCripps

StCripps

2016-02-19 16:49

reporter   ~35468

Hi.

lss uploaded.

With Javascript disabled, you obviously only get the options as a set of drop-down lists rather than the slider, however, you still get the same problem on re-render every item become the first one in the list. Screen shot added as well.

DenisChenu

DenisChenu

2016-02-19 17:21

developer   ~35469

OK then it's a PHP issue :)

Yes : without JS we can not use jquery then use dropdown.

Same for accessibility :)

LouisGac

LouisGac

2016-02-22 10:15

developer   ~35506

Is this problem specific to 2.5 ?

DenisChenu

DenisChenu

2016-02-22 10:20

developer   ~35507

Yes i make and send a lss in 2 minutes : with a "deactivate js ranking" system too (2 groups).

LouisGac

LouisGac

2016-02-22 10:28

developer   ~35511

ok thank you

LouisGac

LouisGac

2016-02-22 12:26

developer   ~35524

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

DenisChenu

DenisChenu

2016-02-22 12:28

developer   ~35525

OK ... no time for lss ....

c_schmitz

c_schmitz

2016-02-23 08:51

administrator   ~35562

Version 2.50+ Build 160222 released

Related Changesets

LimeSurvey: master b0e34503

2016-02-22 11:26:14

LouisGac

Details Diff
Fixed issue 10537: Rank question display error on page re-render Affected Issues
10537
mod - application/helpers/qanda_helper.php Diff File
mod - application/views/survey/questions/ranking/item.php Diff File

Issue History

Date Modified Username Field Change
2016-02-19 15:12 StCripps New Issue
2016-02-19 15:12 StCripps File Added: Rank-broken.png
2016-02-19 16:02 DenisChenu Note Added: 35462
2016-02-19 16:02 DenisChenu Note Edited: 35462
2016-02-19 16:39 StCripps File Added: limesurvey_RankDisplayBroken.lss
2016-02-19 16:49 StCripps Note Added: 35468
2016-02-19 16:49 StCripps File Added: Rank-noJava.png
2016-02-19 16:50 StCripps Issue Monitored: StCripps
2016-02-19 16:50 StCripps Issue End Monitor: StCripps
2016-02-19 17:21 DenisChenu Note Added: 35469
2016-02-21 19:33 c_schmitz Priority normal => urgent
2016-02-22 10:15 LouisGac Note Added: 35506
2016-02-22 10:20 DenisChenu Note Added: 35507
2016-02-22 10:28 LouisGac Note Added: 35511
2016-02-22 12:26 LouisGac Changeset attached => LimeSurvey master b0e34503
2016-02-22 12:26 LouisGac Note Added: 35524
2016-02-22 12:26 LouisGac Assigned To => LouisGac
2016-02-22 12:26 LouisGac Resolution open => fixed
2016-02-22 12:27 LouisGac Status new => resolved
2016-02-22 12:28 DenisChenu Note Added: 35525
2016-02-23 08:51 c_schmitz Note Added: 35562
2016-02-23 08:51 c_schmitz Status resolved => closed