remove duplicate statistic events (#2776)
This commit is contained in:
@@ -192,7 +192,6 @@ class ProjectStatisticService
|
||||
public function getBudgetStatisticModel(Project $project, DateTime $today): ProjectBudgetStatisticModel
|
||||
{
|
||||
$stats = new ProjectBudgetStatisticModel($project);
|
||||
|
||||
$stats->setStatisticTotal($this->getProjectStatistics($project));
|
||||
|
||||
$begin = null;
|
||||
@@ -206,9 +205,6 @@ class ProjectStatisticService
|
||||
|
||||
$stats->setStatistic($this->getProjectStatistics($project, $begin, $end));
|
||||
|
||||
$event = new ProjectBudgetStatisticEvent([$stats], $begin, $end);
|
||||
$this->dispatcher->dispatch($event);
|
||||
|
||||
return $stats;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user