diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-07-19 17:03:06 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-07-19 17:03:06 -0400 |
commit | fcdd71af2cabdd1252172ac83a24be8672ca34cc (patch) | |
tree | 7c449d1c30bfa78e33499995ef73df8fdd424df8 /app/common.php | |
parent | 0dd17c6137b41ace3ce9ae58736326d1a7724c78 (diff) |
Prompt user when moving or duplicate a task to another project
Diffstat (limited to 'app/common.php')
-rw-r--r-- | app/common.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/common.php b/app/common.php index 734f094b..815d2643 100644 --- a/app/common.php +++ b/app/common.php @@ -89,6 +89,12 @@ if (ENABLE_URL_REWRITE) { $container['router']->addRoute('project/:project_id/swimlane/:swimlane_id/column/:column_id', 'task', 'create', array('project_id', 'swimlane_id', 'column_id')); $container['router']->addRoute('public/task/:task_id/:token', 'task', 'readonly', array('task_id', 'token')); + $container['router']->addRoute('project/:project_id/task/:task_id/duplicate', 'taskduplication', 'duplicate', array('task_id', 'project_id')); + $container['router']->addRoute('project/:project_id/task/:task_id/copy', 'taskduplication', 'copy', array('task_id', 'project_id')); + $container['router']->addRoute('project/:project_id/task/:task_id/copy/:dst_project_id', 'taskduplication', 'copy', array('task_id', 'project_id', 'dst_project_id')); + $container['router']->addRoute('project/:project_id/task/:task_id/move', 'taskduplication', 'move', array('task_id', 'project_id')); + $container['router']->addRoute('project/:project_id/task/:task_id/move/:dst_project_id', 'taskduplication', 'move', array('task_id', 'project_id', 'dst_project_id')); + // Board routes $container['router']->addRoute('board/:project_id', 'board', 'show', array('project_id')); $container['router']->addRoute('b/:project_id', 'board', 'show', array('project_id')); |