summaryrefslogtreecommitdiff
path: root/app/Model/TaskTagModel.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Model/TaskTagModel.php')
-rw-r--r--app/Model/TaskTagModel.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/Model/TaskTagModel.php b/app/Model/TaskTagModel.php
index 91dfd224..2a08e867 100644
--- a/app/Model/TaskTagModel.php
+++ b/app/Model/TaskTagModel.php
@@ -82,6 +82,7 @@ class TaskTagModel extends Base
public function save($project_id, $task_id, array $tags)
{
$task_tags = $this->getList($task_id);
+ $tags = array_filter($tags);
return $this->associateTags($project_id, $task_id, $task_tags, $tags) &&
$this->dissociateTags($task_id, $task_tags, $tags);