From de6768746a4e40099c1438d7d705f0138c377b44 Mon Sep 17 00:00:00 2001 From: Tobias Balle-Petersen Date: Mon, 14 Oct 2019 10:54:08 +0200 Subject: [PATCH] color_id not required when updating a tag The parameter color_tag should be optional when updating a tag (Or the documentation should be changed). Since color_id is optional when creating a tag, it is counter intuitive, that it is needed when updating a tag. https://docs.kanboard.org/en/latest/api/tags_procedures.html#updatetag --- app/Model/TagModel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Model/TagModel.php b/app/Model/TagModel.php index ece170beb..94aaf9744 100644 --- a/app/Model/TagModel.php +++ b/app/Model/TagModel.php @@ -160,7 +160,7 @@ class TagModel extends Base * @param string $tag * @return bool */ - public function update($tag_id, $tag, $color_id) + public function update($tag_id, $tag, $color_id = null) { return $this->db->table(self::TABLE)->eq('id', $tag_id)->update(array( 'name' => $tag,