Fix event interpolation

refs #4190
This commit is contained in:
Johannes Meyer 2013-10-25 11:25:41 +02:00
parent 9d3935f15b
commit fd07393e44
1 changed files with 2 additions and 1 deletions

View File

@ -417,7 +417,8 @@ class TimeLine extends Form
$eventCount = 0;
foreach ($this->displayData as $group) {
if ($group->getDateTime() <= $start && $group->getDateTime() > $end) {
if ($group->getName() === $eventGroup->getName() &&
$group->getDateTime() <= $start && $group->getDateTime() > $end) {
$eventCount += $group->getValue();
}
}