Skip to content

Commit

Permalink
Merge pull request #248 from willicab/zammad-get-articles
Browse files Browse the repository at this point in the history
Fix http method and data format in zammad update
  • Loading branch information
phenobarbital authored Apr 8, 2024
2 parents 00ddd8b + c7d8a52 commit 582c7ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion navigator/actions/zammad.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ async def update(self, ticket: int, **kwargs):
Update an Existing Ticket.
"""
self.method = 'post'
self.method = 'put'
title = self._kwargs.pop('title', None)
customer = self._kwargs.pop('customer', ZAMMAD_DEFAULT_CUSTOMER)
group = self._kwargs.pop('group', ZAMMAD_DEFAULT_GROUP)
Expand Down Expand Up @@ -136,6 +136,7 @@ async def update(self, ticket: int, **kwargs):
"article": article,
**kwargs
}
data = self._encoder.dumps(data)
try:
result, _ = await self.request(
self.url, self.method, data=data
Expand Down
2 changes: 1 addition & 1 deletion navigator/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
__description__ = (
"Navigator Web Framework based on aiohttp, " "with batteries included."
)
__version__ = "2.8.40"
__version__ = "2.8.41"
__author__ = "Jesus Lara"
__author_email__ = "jesuslarag@gmail.com"
__license__ = "BSD"

0 comments on commit 582c7ca

Please sign in to comment.