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:
parent
9bd7ae9515
commit
de6768746a
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue