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:
committed by
Frédéric Guillot
parent
6ffe3ed1ed
commit
a0a7a1eb31
@@ -4,6 +4,7 @@ namespace Kanboard\Subscriber;
|
|||||||
|
|
||||||
use Kanboard\Event\GenericEvent;
|
use Kanboard\Event\GenericEvent;
|
||||||
use Kanboard\Model\TaskModel;
|
use Kanboard\Model\TaskModel;
|
||||||
|
use Kanboard\Model\SubtaskModel;
|
||||||
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
|
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
|
||||||
|
|
||||||
class ProjectModificationDateSubscriber extends BaseSubscriber implements EventSubscriberInterface
|
class ProjectModificationDateSubscriber extends BaseSubscriber implements EventSubscriberInterface
|
||||||
@@ -11,14 +12,16 @@ class ProjectModificationDateSubscriber extends BaseSubscriber implements EventS
|
|||||||
public static function getSubscribedEvents()
|
public static function getSubscribedEvents()
|
||||||
{
|
{
|
||||||
return array(
|
return array(
|
||||||
TaskModel::EVENT_CREATE_UPDATE => 'execute',
|
TaskModel::EVENT_CREATE_UPDATE => 'execute',
|
||||||
TaskModel::EVENT_CLOSE => 'execute',
|
TaskModel::EVENT_CLOSE => 'execute',
|
||||||
TaskModel::EVENT_OPEN => 'execute',
|
TaskModel::EVENT_OPEN => 'execute',
|
||||||
TaskModel::EVENT_MOVE_SWIMLANE => 'execute',
|
TaskModel::EVENT_MOVE_SWIMLANE => 'execute',
|
||||||
TaskModel::EVENT_MOVE_COLUMN => 'execute',
|
TaskModel::EVENT_MOVE_COLUMN => 'execute',
|
||||||
TaskModel::EVENT_MOVE_POSITION => 'execute',
|
TaskModel::EVENT_MOVE_POSITION => 'execute',
|
||||||
TaskModel::EVENT_MOVE_PROJECT => 'execute',
|
TaskModel::EVENT_MOVE_PROJECT => 'execute',
|
||||||
TaskModel::EVENT_ASSIGNEE_CHANGE => 'execute',
|
TaskModel::EVENT_ASSIGNEE_CHANGE => 'execute',
|
||||||
|
SubtaskModel::EVENT_CREATE_UPDATE => 'execute',
|
||||||
|
SubtaskModel::EVENT_DELETE => 'execute',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user