Do not create empty tags and remove tags only when necessary
This commit is contained in:
@@ -108,8 +108,6 @@ class TaskModificationModel extends Base
|
||||
if (isset($values['tags'])) {
|
||||
$this->taskTagModel->save($original_task['project_id'], $values['id'], $values['tags']);
|
||||
unset($values['tags']);
|
||||
} else {
|
||||
$this->taskTagModel->save($original_task['project_id'], $values['id'], array());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user