summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/Model/TaskCreationModel.php2
-rw-r--r--doc/en_US/plugin-hooks.markdown1
2 files changed, 3 insertions, 0 deletions
diff --git a/app/Model/TaskCreationModel.php b/app/Model/TaskCreationModel.php
index dbec2b12..044d754d 100644
--- a/app/Model/TaskCreationModel.php
+++ b/app/Model/TaskCreationModel.php
@@ -47,6 +47,8 @@ class TaskCreationModel extends Base
));
}
+ $this->hook->reference('model:task:creation:aftersave', $task_id);
+
return (int) $task_id;
}
diff --git a/doc/en_US/plugin-hooks.markdown b/doc/en_US/plugin-hooks.markdown
index 09b8936b..c9a82094 100644
--- a/doc/en_US/plugin-hooks.markdown
+++ b/doc/en_US/plugin-hooks.markdown
@@ -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 |