Skip to content

Commit

Permalink
[Statistics] fix behavioural tab without any project selection (aces#…
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
ridz1208 authored and spell00 committed Aug 13, 2020
1 parent f5ab6c5 commit ca6ffdb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/statistics/php/stats_behavioural.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,13 @@ class Stats_Behavioural extends \NDB_Form
if (!empty($subprojList)) {
$suproject_query ="AND s.SubprojectID IN ($subprojList)";
}
<<<<<<< f5ab6c5294f2739041ae9d918dcbbf5299724042
$Visits = \Utility::getVisitList($currentProject);
=======
$Visits = \Utility::getExistingVisitLabels($currentProject);
} else {
$Visits = \Utility::getExistingVisitLabels();
>>>>>>> [Statistics] fix behavioural tab without any project selection (#6882)
}

$this->tpl_data['Visits'] = $Visits ?? '';
Expand Down

0 comments on commit ca6ffdb

Please sign in to comment.