View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
08576Bug reportsOtherpublic2014-01-25 17:25
Reporterdichteros Assigned Totpartner  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version2.05+ 
Fixed in Version2.05+ 
Summary08576: Question-Type Ranking hangs up
Description

After a multiple-Choice-Question i used the Matrix-Filter to only show the answers of the multiple-choice in the Ranking-Question. After selecting one item and dragging it to the right, the browser hangs up.

Worked in 2.00+

Additional Information

memory-limit=512
multiple-choice-questions:134 items
matrix-filter: min 5, max 5

TagsNo tags attached.
Attached Files
Bug heat6
Complete LimeSurvey version number (& build)140116
I will donate to the project if issue is resolvedNo
BrowserSafari, Firefox
Database type & versionPostgreSQL 9.1.11
Server OS (if known)Ubuntu 10.04
Webserver software & version (if known)2.2.22
PHP Version5.3.10

Users monitoring this issue

There are no users monitoring this issue.

Activities

dichteros

dichteros

2014-01-22 11:01

reporter   ~28067

in Firefox i get this error-Message:

a script on this side is eventually busy or doesn't answer. You can stopp the script now, or go on, to see if the script will end.

Script: /var/www/third_party/jquery/jquery-1.10.2.min.js:4

c_schmitz

c_schmitz

2014-01-22 15:01

administrator   ~28073

Please attach a minimum test case as example survey. Thank you!

dichteros

dichteros

2014-01-23 11:48

reporter   ~28106

Import test.lss and run it.
Simple click through it till you get to the ranking-question(s)

c_schmitz

c_schmitz

2014-01-23 14:46

administrator   ~28112

dichteros: That's not a mimnimum test case. Anyway, I was able to reproduce it, reduced it now to a minimum case and attached it again.

Tony, can you have a look, please?

tpartner

tpartner

2014-01-23 19:07

partner   ~28119

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

tpartner

tpartner

2014-01-23 19:08

partner   ~28120

Because the rankings are sortable, the checkconditions() function must be fired on every possible rank every time an item is dropped - in this case, that is 134 firings of the function.

I have modified the jQuery selector so these firings will be limited to the maximum-answers value but that will only help if that setting is used and maximum-answers is a reasonable number.

Regardless of this fix, a ranking question with 134 options will never behave well.

c_schmitz

c_schmitz

2014-01-25 17:25

administrator   ~28170

2.05+ Build 140125 released

Related Changesets

LimeSurvey: master f4d5b50c

2014-01-23 18:06:51

tpartner

Details Diff
Fixed issue 08576: Question-Type Ranking hangs up
Dev: Limit firing of checkconditions() function
Affected Issues
08576
mod - scripts/ranking.js Diff File

Issue History

Date Modified Username Field Change
2014-01-22 10:54 dichteros New Issue
2014-01-22 10:55 dichteros Issue Monitored: dichteros
2014-01-22 11:01 dichteros Note Added: 28067
2014-01-22 13:30 dichteros Issue End Monitor: dichteros
2014-01-22 15:01 c_schmitz Note Added: 28073
2014-01-22 15:01 c_schmitz Assigned To => c_schmitz
2014-01-22 15:01 c_schmitz Status new => feedback
2014-01-23 11:47 dichteros File Added: test.lss
2014-01-23 11:48 dichteros Note Added: 28106
2014-01-23 11:48 dichteros Status feedback => assigned
2014-01-23 14:44 c_schmitz File Deleted: test.lss
2014-01-23 14:45 c_schmitz File Added: limesurvey_survey_952128.lss
2014-01-23 14:46 c_schmitz Assigned To c_schmitz => tpartner
2014-01-23 14:46 c_schmitz Note Added: 28112
2014-01-23 19:07 tpartner Changeset attached => LimeSurvey master f4d5b50c
2014-01-23 19:07 tpartner Note Added: 28119
2014-01-23 19:07 tpartner Resolution open => fixed
2014-01-23 19:08 tpartner Note Added: 28120
2014-01-23 19:08 tpartner Status assigned => resolved
2014-01-25 17:25 c_schmitz Fixed in Version => 2.05+
2014-01-25 17:25 c_schmitz Note Added: 28170
2014-01-25 17:25 c_schmitz Status resolved => closed