View Issue Details

IDProjectCategoryView StatusLast Update
14738Bug reportsStatisticspublic2019-11-26 18:02
Reporterdan24 Assigned Tocdorin  
Status assignedResolutionopen 
Product Version3.16.x 
Summary14738: Percentage are not display correctly for questions multiple choice if a Sending date is selected

When editing statistics, if we select Subtotals based on the questions displayed:
correctly to yes and define a Sending date (before and after).
the columm Percentge display "0.00%" for all the multiple choice questions.

If we don't select Subtotals based on the questions displayed it's OK or
if we don't select a sSending date it's OK

Steps To Reproduce

select Responses and Statistics
select Statistics
Select Subtotals based on the questions displayed: on Yes
Define a Sending date

view statistics for question type "multiple choice", all percentge display "0.00%"

Additional Information

in application/helpers/admin/statistics_helper.php line 2988 there is the code for the function.
there is a test line 3009 to compare results and multiNotDisplayed.
I think that the "Sending date" is not used to defined multiNotDisplayed

TagsNo tags attached.
Complete LimeSurvey version number (& build)test on different version : v2.73; v3.15.3; vcd 3.16.0
I will donate to the project if issue is resolvedNo
Sync to Zoho Project
Database & DB-Versionmysql V5.5
Server OS (if known)
Webserver software & version (if known)
PHP Versionphp 5.4




2019-04-05 14:05

reporter   ~51383

So in application/helpers/admin/statistics_helper.php line 2995 i put the following instructions :
if (!empty($sql)){



2019-04-05 14:06

reporter   ~51384

And now the percentage are display correctly

Issue History

Date Modified Username Field Change
2019-04-04 09:24 dan24 New Issue
2019-04-05 14:05 dan24 Note Added: 51383
2019-04-05 14:06 dan24 Note Added: 51384
2019-11-26 18:02 cdorin Assigned To => cdorin
2019-11-26 18:02 cdorin Status new => assigned