View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
03596Bug reportsSurvey takingpublic2009-09-15 12:30
Reportermdekker Assigned Toc_schmitz  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version1.85+ 
Fixed in Version1.85+ 
Summary03596: Javascript error causes array filter to function unstable in group by group or survey at once mode
Description

See attached survey, when first question is answered: 1, 2, 3, 4 the next question opens up perfect. When deselecting in the same order no problem as well.

Now try select 1,2,3,4 and then deselect 1 (no problem) deselect 4... nothing happens.

(in IE8 it even crashes my browser)

Additional Information

In firefox with firebug I see an error for the radioObj. Fix is to make the radio_unselect function check whether the passed radioObj exists or not. However, I think there is more to it. I think the problem is that the deselect function tries to unset answers if the input is going to be hidden. For radio question this seems to work but for the multi flexi text / number this doesn't work.

TagsNo tags attached.
Attached Files
Bug heat6
Complete LimeSurvey version number (& build)
I will donate to the project if issue is resolved
Browser
Database type & version
Server OS (if known)
Webserver software & version (if known)
PHP Version

Users monitoring this issue

There are no users monitoring this issue.

Activities

user372

2009-08-25 18:10

  ~09213

I can reproduce an error (tested with FF3.5):
If I choose/check at the first question: 1-2-3-4 I have to uncheck in the following order 4-3-2-1, else all answers at question two don't disappear.
Eg. check 1-2-3-4 and uncheck 1-2-3-4 ==> answer 2-3-4 at question two are still displayed.

c_schmitz

c_schmitz

2009-09-02 03:01

administrator   ~09322

Josef, can you check the latest version in IE8 with the attached survey.
It is crashing the browser when I unselect things.

user372

2009-09-02 08:04

  ~09326

In the meantime I upgraded my installation from rev. 7549 to rev. 7557 and I can reproduce the error, that IE8 is crashing at unselecting things.

c_schmitz

c_schmitz

2009-09-02 13:14

administrator   ~09336

Wow, what a weird error, and it's even crashing the browser.

mdekker

mdekker

2009-09-02 14:07

reporter   ~09337

After a few crashes... IE gets into compatibility mode with me and then it seems to work... really annoying. Must be buggy IE8, since there is more oneliners floating around that crash ie8: http://www.domnodes.org/wp/?p=11

mdekker

mdekker

2009-09-02 14:15

reporter   ~09338

Problem seems only to occur when deselecting a box while the next one is still selected...

c_schmitz

c_schmitz

2009-09-02 14:22

administrator   ~09339

even more weird ;)

mdekker

mdekker

2009-09-02 14:30

reporter   ~09340

Just a wild thought... could it be that resetting a value triggers another event and thus creates some sort of loop that makes IE8 crash?

c_schmitz

c_schmitz

2009-09-02 14:41

administrator   ~09341

Could be possible. I think the best way to find out is to manually edit a saved HTML page down to the point where it does not happen anymore.

mdekker

mdekker

2009-09-02 14:49

reporter   ~09342

It is just the second question that crashes the thing...

Maybe as a quick fix the array filter can be disabled for the multi flexi text?

c_schmitz

c_schmitz

2009-09-07 23:07

administrator   ~09449

Looks like the culprit was malformed HTML, a TBODY in a TBODY tag.

Issue History

Date Modified Username Field Change
2009-08-25 12:02 mdekker New Issue
2009-08-25 12:02 mdekker Status new => assigned
2009-08-25 12:02 mdekker Assigned To => user372
2009-08-25 12:02 mdekker File Added: limesurvey_survey_91376.csv
2009-08-25 12:21 mdekker Summary Javascript error causes conditions to function unstable in group by group or survey at once mode => Javascript error causes array filter to function unstable in group by group or survey at once mode
2009-08-25 12:21 mdekker Description Updated
2009-08-25 12:21 mdekker Additional Information Updated
2009-08-25 18:10 user372 Note Added: 09213
2009-08-25 18:11 user372 Assigned To user372 => c_schmitz
2009-08-27 16:22 c_schmitz Status assigned => resolved
2009-08-27 16:22 c_schmitz Fixed in Version => 1.85+
2009-08-27 16:22 c_schmitz Resolution open => fixed
2009-08-31 15:12 c_schmitz Status resolved => closed
2009-09-02 03:01 c_schmitz Status closed => feedback
2009-09-02 03:01 c_schmitz Resolution fixed => reopened
2009-09-02 03:01 c_schmitz Note Added: 09322
2009-09-02 03:01 c_schmitz Status feedback => assigned
2009-09-02 03:01 c_schmitz Assigned To c_schmitz => user372
2009-09-02 07:50 user372 Assigned To user372 => c_schmitz
2009-09-02 08:04 user372 Note Added: 09326
2009-09-02 13:14 c_schmitz Note Added: 09336
2009-09-02 14:07 mdekker Note Added: 09337
2009-09-02 14:15 mdekker Note Added: 09338
2009-09-02 14:22 c_schmitz Note Added: 09339
2009-09-02 14:30 mdekker Note Added: 09340
2009-09-02 14:41 c_schmitz Note Added: 09341
2009-09-02 14:49 mdekker Note Added: 09342
2009-09-07 23:07 c_schmitz Note Added: 09449
2009-09-07 23:07 c_schmitz Status assigned => resolved
2009-09-07 23:07 c_schmitz Resolution reopened => fixed
2009-09-15 12:30 c_schmitz Status resolved => closed
2010-10-25 00:18 c_schmitz Category Survey at Runtime => Survey taking