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
This commit is contained in:
Tobias Balle-Petersen 2019-10-14 10:54:08 +02:00 committed by Frédéric Guillot
parent 9bd7ae9515
commit de6768746a
1 changed files with 1 additions and 1 deletions

View File

@ -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,