View Issue Details

This bug affects 1 person(s).
 22
IDProjectCategoryView StatusLast Update
03512Bug reportsSurvey takingpublic2010-01-28 01:17
ReporterVBraun Assigned Tojcleeland  
PrioritynormalSeverityminor 
Status closedResolutionsuspended 
Product Version1.85+ 
Summary03512: Array_filter does not work in ranking question type
Description

Array_filter has no effect on ranking question.

While a multichoice question properly filtrates an array question the same multichoice question has no effect on ranking question in the same survey.

Additional Information

Tested at two local machines and at my hosted site, and in two different surveys, always with the same result.

TagsNo tags attached.
Attached Files
array_filter_test.csv (4,445 bytes)
Bug heat22
Complete LimeSurvey version number (& build)7253
I will donate to the project if issue is resolved
BrowserChrome, IE
Database type & versionMySql 5.0.51a
Server OS (if known)Vista, XP, some Linux
Webserver software & version (if known)Apache/2.2.11 (Win32) DAV/2 mod_ssl/2.2.11 OpenSSL/0.9.8i
PHP VersionPHP/5.2.9

Relationships

has duplicate 03677 closedjcleeland Ranking questions with array_filter not really filtering items 
related to 03640 closedc_schmitz Mandatory question is not working on ranking type 

Users monitoring this issue

VBraun

Activities

user372

2009-07-24 22:52

  ~08936

Please attach a simple sample survey (survey structure as .csv-file), where we can reproduce the issue - THX!

VBraun

VBraun

2009-07-24 23:11

reporter   ~08938

File with test is uploaded

VBraun

VBraun

2009-08-06 21:26

reporter   ~09038

I tested the array filter with the same test survey in Firefox browser in a meantime and it worked nicely even in ranking question. It was with the latest build 7394. It still does not work in Chrome and IE. Strange.

c_schmitz

c_schmitz

2009-08-19 01:19

administrator   ~09167

VBraun, can you please test once again on the latest version?

VBraun

VBraun

2009-08-20 09:12

reporter   ~09184

Hi,

I tested it in the latest build 7489, with the same test survey, in Chrome and IE, and array filter still has no effect on question type Ranking.
Summary: No change from my point of view.

Were you able to reproduce the issue in your environment with the test survey?

Regards,
Vlada

c_schmitz

c_schmitz

2009-09-22 01:52

administrator   ~09629

Jason, is this even supposed to be implemented for Ranking Questions?

VBraun

VBraun

2009-09-22 15:00

reporter   ~09639

According to the documentation it should be implemented since 1.82

  • see below. Vlada

Available in Question Types
Array (5 Point Choice)
Array (10 Point Choice)
Array (Yes/No/Uncertain)
Array (Increase, Same, Decrease)
Array (Flexible Labels)
Array (Multi Flexible) (Numbers)
Ranking (since 1.82)

jcleeland

jcleeland

2009-09-28 05:23

reporter   ~09663

The array_filter in the ranking question uses css to hide the elements not selected. This method doesn't work in chrome or safari. I'll see what alternatives are available.

c_schmitz

c_schmitz

2009-09-30 16:26

administrator   ~09679

Since it also broke the mandatory code I removed the array_filter code from qanda.php for ranking questions for now to make 1.86 stable.

user5227

2009-10-16 15:20

  ~09810

No change for version 1.86 (7697). Is there any release for which a fix is planned already?

user5227

2009-10-26 15:43

  ~09862

Reminder sent to: jcleeland

Dear jcleeland,

You noted that `the array_filter in the ranking question uses css to hide the elements not selected. This method doesn't work in chrome or safari. I'll see what alternatives are available.'. Can I help you with this?

Regards,

Werner

Mazi

Mazi

2009-10-27 14:17

updater   ~09870

Werner, any kind of help is appreciated. See what you can do and add your files and explanations here. Jason/jcleeland will then take a look at it.

Currently he is abraod which is the reason why he hasn't answered to you yet.

user5227

2009-10-28 14:20

  ~09891

The array_filter does not seem to work for the `multiple options' question type anymore, either in 1.86. Reproduced in

  • FF 3.5.3 on Linux
  • Opera 10 on WXP
  • IE 8 on WXP,
  • Chrome 3.0.195.27 on WXP

user659

2009-10-30 09:46

  ~09923

Array_filter takes its filter values FROM multiple-option questions, it does not apply the filter TO that question type - see Vlada's list above from the manual of question types to which it applies.

user5227

2009-11-02 09:55

  ~09948

What I should have said is: `Array (Flexible Labels)'

The array_filter does not seem to work for the `Array (Flexible Labels)' question type anymore, either in 1.86. Reproduced in

  • FF 3.5.3 on Linux
  • Opera 10 on WXP
  • IE 8 on WXP,
  • Chrome 3.0.195.27 on WXP

I stand corrected.

jcleeland

jcleeland

2009-11-09 12:52

reporter   ~10024

Hi, I'm back :-)

@werner: Can you open a new bug report for the array_filter not working on array (flexible labels) - I think I can probably take care of that. Thanks. :-)

@werner: if you can help with suggestions for the ranking question type, that'd be good :-) It's about the html method - and using css to turn off elements of a select box just doesn't work in all browsers, and so we can't rely on it.

Jason

Issue History

Date Modified Username Field Change
2009-07-24 22:37 VBraun New Issue
2009-07-24 22:37 VBraun Status new => assigned
2009-07-24 22:37 VBraun Assigned To => user372
2009-07-24 22:37 VBraun Build Number => 7253
2009-07-24 22:37 VBraun Browser => Chrome, IE
2009-07-24 22:37 VBraun Database & DB-Version => MySql 5.0.51a
2009-07-24 22:37 VBraun Operating System (Server) => Vista, XP, some Linux
2009-07-24 22:37 VBraun Webserver => Apache/2.2.11 (Win32) DAV/2 mod_ssl/2.2.11 OpenSSL/0.9.8i
2009-07-24 22:37 VBraun PHP Version => PHP/5.2.9
2009-07-24 22:52 user372 Note Added: 08936
2009-07-24 22:52 user372 Status assigned => feedback
2009-07-24 23:10 VBraun File Added: array_filter_test.csv
2009-07-24 23:11 VBraun Note Added: 08938
2009-07-24 23:26 user372 Status feedback => assigned
2009-07-24 23:26 user372 Assigned To user372 => jcleeland
2009-07-28 11:37 VBraun Issue Monitored: VBraun
2009-08-06 21:26 VBraun Note Added: 09038
2009-08-19 01:19 c_schmitz Note Added: 09167
2009-08-20 09:12 VBraun Note Added: 09184
2009-09-12 21:28 lemeur Relationship added has duplicate 03677
2009-09-22 01:52 c_schmitz Note Added: 09629
2009-09-22 15:00 VBraun Note Added: 09639
2009-09-28 05:23 jcleeland Note Added: 09663
2009-09-30 16:25 c_schmitz Relationship added related to 03640
2009-09-30 16:26 c_schmitz Note Added: 09679
2009-10-04 00:28 c_schmitz Summary Array_filter does not work in Rating question => Array_filter does not work in ranking question type
2009-10-16 12:24 user5227 Issue Monitored: user5227
2009-10-16 15:20 user5227 Note Added: 09810
2009-10-26 15:43 user5227 Note Added: 09862
2009-10-27 14:17 Mazi Note Added: 09870
2009-10-28 14:20 user5227 Note Added: 09891
2009-10-30 09:46 user659 Note Added: 09923
2009-11-02 09:55 user5227 Note Added: 09948
2009-11-09 12:52 jcleeland Note Added: 10024
2010-01-28 01:16 c_schmitz Status assigned => closed
2010-01-28 01:17 c_schmitz Resolution open => suspended
2010-10-25 00:18 c_schmitz Category Survey at Runtime => Survey taking
2021-08-03 08:10 guest Bug heat 20 => 22