Add subtask events to ProjectModificationDateSubscriber

This allows also subtask updates to be reflected on the dashboard (the % info) when a subtask is completed.
This commit is contained in:
Franky Van Liedekerke 2020-05-04 11:56:19 +02:00 committed by Frédéric Guillot
parent 6ffe3ed1ed
commit a0a7a1eb31
1 changed files with 11 additions and 8 deletions

View File

@ -4,6 +4,7 @@ namespace Kanboard\Subscriber;
use Kanboard\Event\GenericEvent;
use Kanboard\Model\TaskModel;
use Kanboard\Model\SubtaskModel;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
class ProjectModificationDateSubscriber extends BaseSubscriber implements EventSubscriberInterface
@ -11,14 +12,16 @@ class ProjectModificationDateSubscriber extends BaseSubscriber implements EventS
public static function getSubscribedEvents()
{
return array(
TaskModel::EVENT_CREATE_UPDATE => 'execute',
TaskModel::EVENT_CLOSE => 'execute',
TaskModel::EVENT_OPEN => 'execute',
TaskModel::EVENT_MOVE_SWIMLANE => 'execute',
TaskModel::EVENT_MOVE_COLUMN => 'execute',
TaskModel::EVENT_MOVE_POSITION => 'execute',
TaskModel::EVENT_MOVE_PROJECT => 'execute',
TaskModel::EVENT_ASSIGNEE_CHANGE => 'execute',
TaskModel::EVENT_CREATE_UPDATE => 'execute',
TaskModel::EVENT_CLOSE => 'execute',
TaskModel::EVENT_OPEN => 'execute',
TaskModel::EVENT_MOVE_SWIMLANE => 'execute',
TaskModel::EVENT_MOVE_COLUMN => 'execute',
TaskModel::EVENT_MOVE_POSITION => 'execute',
TaskModel::EVENT_MOVE_PROJECT => 'execute',
TaskModel::EVENT_ASSIGNEE_CHANGE => 'execute',
SubtaskModel::EVENT_CREATE_UPDATE => 'execute',
SubtaskModel::EVENT_DELETE => 'execute',
);
}