Fix assigning tags to tickets
This commit is contained in:
parent
63dedabe63
commit
891bccf892
1 changed files with 3 additions and 2 deletions
|
@ -19,8 +19,9 @@ class Tag(Resource):
|
||||||
path_attribute = "tags"
|
path_attribute = "tags"
|
||||||
|
|
||||||
def add(self, obj, id, item):
|
def add(self, obj, id, item):
|
||||||
response = self._connection.session.get(
|
response = self._connection.session.post(
|
||||||
self.url + "/add?object=%s&o_id=%d&item=%s" % (obj, id, item)
|
self.url + "/add",
|
||||||
|
data={"object": obj, "id": id, "item": item}
|
||||||
)
|
)
|
||||||
return self._raise_or_return_json(response)
|
return self._raise_or_return_json(response)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue