From 83e0ef325d887dde3a026655808edbf1e16e3d92 Mon Sep 17 00:00:00 2001 From: GabrielJenik Date: Wed, 2 Sep 2020 16:13:11 -0300 Subject: [PATCH] Fixed issue #16598--Statistics--Criteria-not-cleared-for-text-question-results Clearing criteia on session if no filter set --- application/helpers/admin/statistics_helper.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/application/helpers/admin/statistics_helper.php b/application/helpers/admin/statistics_helper.php index 99206e9b390..c853de2bf55 100644 --- a/application/helpers/admin/statistics_helper.php +++ b/application/helpers/admin/statistics_helper.php @@ -3668,6 +3668,8 @@ public function generate_html_chartjs_statistics($surveyid, $allfields, $q2show //add filter criteria to SQL $query .= implode(" AND ", $selects); + } else { + unset(Yii::app()->session['statistics_selects_'.$surveyid]); } //get me some data Scotty