mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-28 02:23:51 +00:00
add confirmation page for task
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user