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 e5065d8 commit 9e13074
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions modules/statistics/php/stats_behavioural.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,18 @@ class Stats_Behavioural extends \NDB_Form
if (!empty($subprojList)) {
$suproject_query ="AND s.SubprojectID IN ($subprojList)";
}
<<<<<<< f5ab6c5294f2739041ae9d918dcbbf5299724042
$Visits = \Utility::getVisitList($currentProject);
<<<<<<< e5065d8b179ec41a092613772902ece266d8fe4e
} else {
$Visits = \Utility::getVisitList();
=======
=======
$Visits = \Utility::getExistingVisitLabels($currentProject);
} else {
$Visits = \Utility::getExistingVisitLabels();
>>>>>>> [Statistics] fix behavioural tab without any project selection (#6882)
>>>>>>> [Statistics] fix behavioural tab without any project selection (#6882)
}

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

0 comments on commit 9e13074

Please # to comment.