diff options
Diffstat (limited to 'app/Action/TaskAssignCategoryLink.php')
-rw-r--r-- | app/Action/TaskAssignCategoryLink.php | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/app/Action/TaskAssignCategoryLink.php b/app/Action/TaskAssignCategoryLink.php index 3d00e8d3..b39e41b4 100644 --- a/app/Action/TaskAssignCategoryLink.php +++ b/app/Action/TaskAssignCategoryLink.php @@ -14,6 +14,17 @@ use Kanboard\Model\TaskLink; class TaskAssignCategoryLink extends Base { /** + * Get automatic action description + * + * @access public + * @return string + */ + public function getDescription() + { + return t('Assign automatically a category based on a link'); + } + + /** * Get the list of compatible events * * @access public @@ -65,7 +76,7 @@ class TaskAssignCategoryLink extends Base { $values = array( 'id' => $data['task_id'], - 'category_id' => isset($data['category_id']) ? $data['category_id'] : $this->getParam('category_id'), + 'category_id' => $this->getParam('category_id'), ); return $this->taskModification->update($values); |