add confirmation page for task

This commit is contained in:
2018-07-06 15:47:14 +02:00
parent 5ada6d913c
commit 52bda7c94f
7 changed files with 268 additions and 26 deletions

View File

@@ -108,10 +108,16 @@ class CountNotificationTask implements NotificationCounterInterface
$task = $e->getSubject();
if (NULL !== $task->getAssignee()) {
$sumCache = $this->cachePool->getItem($this->getCacheKey($task->getAssignee()));
if ($sumCache->isHit()) {
$this->cachePool->deleteItem($this->getCacheKey($task->getAssignee()));
foreach ([
SingleTaskRepository::DATE_STATUS_ENDED,
SingleTaskRepository::DATE_STATUS_WARNING
] as $status) {
$key = $this->getCacheKey($task->getAssignee(), $status);
$sumCache = $this->cachePool->getItem($key);
if ($sumCache->isHit()) {
$this->cachePool->deleteItem($key);
}
}
}
}