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:
committed by
Frédéric Guillot
parent
9bd7ae9515
commit
de6768746a
@@ -160,7 +160,7 @@ class TagModel extends Base
|
|||||||
* @param string $tag
|
* @param string $tag
|
||||||
* @return bool
|
* @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(
|
return $this->db->table(self::TABLE)->eq('id', $tag_id)->update(array(
|
||||||
'name' => $tag,
|
'name' => $tag,
|
||||||
|
|||||||
Reference in New Issue
Block a user