View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
06834Bug reportsStatisticspublic2012-11-13 09:33
ReporterQat Assigned ToDenisChenu  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version2.00+ 
Fixed in Version2.00+ 
Summary06834: "Subtotals based on displayed questions" doesn't work with Multiple Choices questions
Description

When a multiple choice question is conditionally displayed, the percentage stat fot this question will always be based on the total amount of participants, even if the option "Subtotals based on displayed questions" is checked

Steps To Reproduce

Create a new survey with 2 questions
Q1 is of typoe YES/NO
Q2 is of type Multiple choice (answers A, B, C, and/or D)
Q2 is diplayed only if Q1=YES

Activate the survey
Participate twice to that survey :
1st participant answers NO to Q1
2nd participant answers YES to Q1, and then A, B and C to Q2

Go to stats, and select "Subtotals based on displayed questions".

What the stats SHOULD show for Q2 : A:100%, B:100%, C:100%, D0%
What the stats DO show for Q2 : A:50%, B:50%, C:50%, D:0%

TagsNo tags attached.
Attached Files
Bug heat4
Complete LimeSurvey version number (& build)121106
I will donate to the project if issue is resolvedNo
BrowserChrome 22.0.1229.94 m, IE8
Database type & versionMySQL 5.1.61
Server OS (if known)Linux web494.media.ha.ovh.net 3.2.2-grsec-mutu-grs-ipv6-64 #1 SMP Thu Jan 26 14:55:34 UTC 2012 x86_64
Webserver software & version (if known)?
PHP Version5.3.16

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2012-11-08 19:49

developer   ~22023

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

DenisChenu

DenisChenu

2012-11-08 19:55

developer   ~22024

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

DenisChenu

DenisChenu

2012-11-08 20:01

developer   ~22025

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

DenisChenu

DenisChenu

2012-11-08 21:30

developer   ~22027

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

c_schmitz

c_schmitz

2012-11-13 09:33

administrator   ~22105

New 2.00+ build released

Related Changesets

LimeSurvey: 2.1 05182f70

2012-11-08 18:47:59

DenisChenu

Details Diff
Fixed issue 06834: "Subtotals based on displayed questions" doesn't work with Multiple Choices questions
Fixed issue: Bad label for Not displayed
Dev: Add a multiNotDisplayed var, test if all subQ is NULL
Dev: I hope it's OK, varname is not clear (gdata/grawdata/results), tested and tested again
Affected Issues
06834
mod - application/helpers/admin/statistics_helper.php Diff File

LimeSurvey: 2.1 1674dbdb

2012-11-08 18:51:56

DenisChenu

Details Diff
Revert "Fixed issue 06834: "Subtotals based on displayed questions" doesn't work with Multiple Choices questions"

This reverts commit 05182f70c62501b510f21637f43c6a0b8dc957b5.
Affected Issues
06834
mod - application/helpers/admin/statistics_helper.php Diff File

LimeSurvey: master 0357b7bc

2012-11-08 19:00:13

DenisChenu

Details Diff
Fixed issue 06834: "Subtotals based on displayed questions" doesn't work with Multiple Choices questions
Fixed issue: Bad label for Not displayed
Dev: Add a multiNotDisplayed var, test if all subQ is NULL
Dev: Varname is not clear (gdata/grawdata/results), tested and tested again
Affected Issues
06834
mod - application/helpers/admin/statistics_helper.php Diff File

LimeSurvey: 2.1 9928ef70

2012-11-08 20:29:10

DenisChenu

Details Diff
Fixed issue 06834: "Subtotals based on displayed questions" doesn't work with Multiple Choices questions
Fixed issue: Bad label for Not displayed
Dev: Add a multiNotDisplayed var, test if all subQ is NULL
Dev: Varname is not clear (gdata/grawdata/results), tested and tested again
Dev: Conflicts: application/helpers/admin/statistics_helper.php resolved
Affected Issues
06834
mod - application/helpers/admin/statistics_helper.php Diff File

Issue History

Date Modified Username Field Change
2012-11-06 14:36 Qat New Issue
2012-11-06 14:36 Qat File Added: ls200plus_bug_stats.lsa
2012-11-08 14:18 DenisChenu Assigned To => DenisChenu
2012-11-08 14:18 DenisChenu Status new => assigned
2012-11-08 19:49 DenisChenu Changeset attached => LimeSurvey 2.1 05182f70
2012-11-08 19:49 DenisChenu Note Added: 22023
2012-11-08 19:49 DenisChenu Resolution open => fixed
2012-11-08 19:55 DenisChenu Changeset attached => LimeSurvey 2.1 1674dbdb
2012-11-08 19:55 DenisChenu Note Added: 22024
2012-11-08 20:01 DenisChenu Changeset attached => LimeSurvey master 0357b7bc
2012-11-08 20:01 DenisChenu Note Added: 22025
2012-11-08 21:30 DenisChenu Changeset attached => LimeSurvey 2.1 9928ef70
2012-11-08 21:30 DenisChenu Note Added: 22027
2012-11-08 21:30 DenisChenu Status assigned => resolved
2012-11-08 21:30 DenisChenu Fixed in Version => 2.00+
2012-11-13 09:33 c_schmitz Note Added: 22105
2012-11-13 09:33 c_schmitz Status resolved => closed