View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
07286Bug reportsExpression Managerpublic2013-02-19 11:13
Reportermjwallach Assigned ToDenisChenu  
PrioritynormalSeveritypartial_block 
Status closedResolutionfixed 
Product Version2.00+ 
Fixed in Version2.00+ 
Summary07286: Relevance Equation Problem with Ranking Question
Description

The survey includes the following questions:

Q1: Yes/No question
Q3: multiple choice question with relevance equation "! is_empty (Q1)"
Q6: ranking question with array filter Q3 and relevance equation "! is_empty(Q1) and count(that.Q3.NAOK)>1"
Q7: multiple-choice question with relevance equation "! is_empty(Q6_1.NAOK)"

The intended functionality is:

Q3 should display only if Q1 is answered.
Q6 should be populated with the selections made in Q3, and will display only if Q1 is answered and at least two choices are selected in Q3.
Q7 should display only if there is something in the first rank of Q6.

The problem:

Q7 does not display unless the first item in Q3 is selected in addition to any other selections. However, there is no reference to Q3 in the logic of Q7

Steps To Reproduce

Answer question Q1, and question Q3 displays. Make at least two selections in Q3, but do not select the first item. Complete the ranking in Q6. Q7 does not display even though the first rank in Q6 is not empty. Then select the first item in Q3, and Q7 displays.

TagsNo tags attached.
Attached Files
Bug heat6
Complete LimeSurvey version number (& build)130206
I will donate to the project if issue is resolvedNo
Browser Firefox and Internet Explorer
Database type & versionmySQL 5.5.24
Server OS (if known)Windows 7
Webserver software & version (if known)Wampserver 2.2 running Apache 2.4.2
PHP Version5.4.3

Users monitoring this issue

mjwallach

Activities

DenisChenu

DenisChenu

2013-02-16 14:46

developer   ~24125

Exact source of bug are really difficult to find.

PLease, test with A1,A2,A3 ... for answer. Seems there are another bug then.

DenisChenu

DenisChenu

2013-02-16 15:47

developer   ~24130

It's an error with the number.

Replace 1,2,3 by A1,A2,A3 are OK.

I allways think use number at code are a bad idea.

DenisChenu

DenisChenu

2013-02-18 10:56

developer   ~24142

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

DenisChenu

DenisChenu

2013-02-18 11:01

developer   ~24143

Need rework for 2.1/Plugin.

Maybe updateRelevance function can be set in Question.Plugin, or optionaly set.

Here: there are:
The answer from ranking, and the subquestion for ranking.
For all other array filter (expect radio-button list where i think there are problem too) relevance apply to SubQ, not for ranking where it apply to Answer ....

c_schmitz

c_schmitz

2013-02-19 11:13

administrator   ~24151

2.00 Build 130219 released

Related Changesets

LimeSurvey: master 7138d9c9

2013-02-18 09:52:20

DenisChenu

Details Diff
Fixed issue 07286: Relevance Equation Problem with Ranking Question
Dev: Ranking filter array filter the answer, not the SUBQ
Dev: Tested with: array filter for rankning and array filter by ranking with answer code to 1,2,3
Dev: when make modification, remove a warning " Invalid argument supplied for foreach()" in em_manager_helper.php(3835): Quick fix
Affected Issues
07286
mod - application/helpers/expressions/em_manager_helper.php Diff File
mod - application/helpers/qanda_helper.php Diff File
mod - scripts/ranking.js Diff File

Issue History

Date Modified Username Field Change
2013-02-11 03:55 mjwallach New Issue
2013-02-11 03:55 mjwallach File Added: limesurvey_survey_83723.lss
2013-02-15 10:34 c_schmitz Assigned To => c_schmitz
2013-02-15 10:34 c_schmitz Status new => assigned
2013-02-15 11:04 c_schmitz Assigned To c_schmitz => DenisChenu
2013-02-16 08:32 mjwallach Issue Monitored: mjwallach
2013-02-16 14:46 DenisChenu Note Added: 24125
2013-02-16 14:46 DenisChenu File Added: limesurvey_survey_ranking-working.lss
2013-02-16 15:47 DenisChenu Note Added: 24130
2013-02-18 10:56 DenisChenu Changeset attached => LimeSurvey master 7138d9c9
2013-02-18 10:56 DenisChenu Note Added: 24142
2013-02-18 10:56 DenisChenu Resolution open => fixed
2013-02-18 11:01 DenisChenu Note Added: 24143
2013-02-18 11:01 DenisChenu Status assigned => resolved
2013-02-18 11:01 DenisChenu Fixed in Version => 2.00+
2013-02-19 11:13 c_schmitz Note Added: 24151
2013-02-19 11:13 c_schmitz Status resolved => closed