From b6b56f68e6b1faed2ca8cd79f8cf01755684da44 Mon Sep 17 00:00:00 2001 From: Rida Abou-Haidar Date: Thu, 6 Aug 2020 10:16:56 -0400 Subject: [PATCH] [Statistics] fix behavioural tab without any project selection (#6882) When no project is selected the behavioural tab should show results for all projects for all visits. instead it was just displaying an empty row see images. --- modules/statistics/php/stats_behavioural.class.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/statistics/php/stats_behavioural.class.inc b/modules/statistics/php/stats_behavioural.class.inc index 80f0b688983..bb62db6eb09 100644 --- a/modules/statistics/php/stats_behavioural.class.inc +++ b/modules/statistics/php/stats_behavioural.class.inc @@ -128,6 +128,8 @@ class Stats_Behavioural extends \NDB_Form $suproject_query ="AND s.SubprojectID IN ($subprojList)"; } $Visits = \Utility::getExistingVisitLabels($currentProject); + } else { + $Visits = \Utility::getExistingVisitLabels(); } $this->tpl_data['Visits'] = $Visits ?? '';