View Issue Details

IDProjectCategoryView StatusLast Update
14738Bug reports[All Projects] Statisticspublic2019-04-05 14:06
Reporterdan24Assigned To 
PrioritynoneSeverityminor 
Status newResolutionopen 
Product Version3.16.x 
Target VersionFixed in Version 
Summary14738: Percentage are not display correctly for questions multiple choice if a Sending date is selected
Description

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
BrowserFirefox
Database & DB-Versionmysql V5.5
Server OS (if known)
Webserver software & version (if known)
PHP Versionphp 5.4

Activities

dan24

dan24

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)){
$criteria->addCondition($sql);
}

dan24

dan24

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