Skip to content

Commit

Permalink
[Statistics] fix behavioural tab without any project selection (#6882)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ridz1208 authored Aug 6, 2020
1 parent 6a08edd commit b6b56f6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/statistics/php/stats_behavioural.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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 ?? '';
Expand Down

0 comments on commit b6b56f6

Please sign in to comment.