Added plugin hook 'aftersave' after creating Task

This commit is contained in:
Zdenko Pikula 2018-01-11 01:00:15 +01:00 committed by fguillot
parent 227b4a5c21
commit f7c6cbd0f4
2 changed files with 3 additions and 0 deletions

View File

@ -47,6 +47,8 @@ class TaskCreationModel extends Base
));
}
$this->hook->reference('model:task:creation:aftersave', $task_id);
return (int) $task_id;
}

View File

@ -140,6 +140,7 @@ List of reference hooks:
| `pagination:dashboard:task:query` | Alter database query for tasks pagination on the dashboard |
| `pagination:dashboard:subtask:query` | Alter database query for subtasks pagination on the dashboard |
| `model:task:creation:prepare` | Alter form values before to save a task |
| `model:task:creation:aftersave` | Retrieve Task ID after creating a task |
| `model:task:modification:prepare` | Alter form values before to edit a task |
| `model:color:get-list` | Alter default_colors values |
| `model:subtask:modification:prepare` | Alter form values before to save a subtask |