View Issue Details

This bug affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
05461Bug reportsStatisticspublic2012-03-14 21:08
Reporteruser10199Assigned Toc_schmitz  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version1.91+ 
Fixed in Version1.91+ 
Summary05461: Arithmetic mean and deviation are not displayed even if showaggregateddata is set to 1
Description

Even if the optional setting $showaggregateddata is set to 1 in the configuration file, additional values such as arithmetical mean and deviation are not displayed on the statistics page.

Steps To Reproduce
  • Create a survey with questions of type "A" (5 point array) or "5" (5 point choice)
  • Fill in some answers
  • Generate statistics
Additional Information

The problem is that the variable $showaggregateddata is not declared as a global variable in the generate_statistics function, in the admin/statistics_function.php

Here is a patch (build against limesurvey_dev) that fixes the problem.

TagsNo tags attached.
Attached Files
fix_showaggregateddata.patch (626 bytes)   
Index: admin/statistics_function.php
===================================================================
--- admin/statistics_function.php	(révision 10991)
+++ admin/statistics_function.php	(copie de travail)
@@ -79,7 +79,7 @@
     //$allfields ="";
     global $connect, $dbprefix, $clang,
     $rooturl, $rootdir, $homedir, $homeurl, $tempdir, $tempurl, $scriptname, $imagedir,
-    $chartfontfile, $chartfontsize, $admintheme, $pdfdefaultfont, $pdffontsize;
+    $chartfontfile, $chartfontsize, $admintheme, $pdfdefaultfont, $pdffontsize, $showaggregateddata;
 
     $fieldmap=createFieldMap($surveyid, "full");
 
Bug heat2
Complete LimeSurvey version number (& build)9642
I will donate to the project if issue is resolvedNo
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

c_schmitz

c_schmitz

2011-09-16 14:59

administrator   ~16286

Thank you very much. Good catch and patch! Fixed in rev 10996

Related Changesets

LimeSurvey: Yii f34b1195

2011-09-16 05:58:41

c_schmitz

Details Diff
Fixed issue 05461: Arithmetic mean and deviation are not displayed even if showaggregateddata is set to 1

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey_ci@10995 b72ed6b6-b9f8-46b5-92b4-906544132732
Affected Issues
05461
mod - application/helpers/admin/statistics_helper.php Diff File

Issue History

Date Modified Username Field Change
2011-09-15 11:27 user10199 New Issue
2011-09-15 11:27 user10199 File Added: fix_showaggregateddata.patch
2011-09-16 14:59 c_schmitz Note Added: 16286
2011-09-16 14:59 c_schmitz Status new => resolved
2011-09-16 14:59 c_schmitz Fixed in Version => 1.91+
2011-09-16 14:59 c_schmitz Resolution open => fixed
2011-09-16 14:59 c_schmitz Assigned To => c_schmitz
2011-10-08 22:18 c_schmitz Status resolved => closed
2012-03-14 21:08 c_schmitz Changeset attached => Import 2012-03-09 13:30:34 Yii f34b1195