mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-11-22 16:03:19 +01:00
- issue #493: internal error 500 on save query
https://github.com/django-helpdesk/django-helpdesk/issues/493
This commit is contained in:
parent
4eb70841e8
commit
babc7586cf
@ -815,7 +815,7 @@ def ticket_list(request):
|
|||||||
import json
|
import json
|
||||||
from helpdesk.lib import b64decode
|
from helpdesk.lib import b64decode
|
||||||
try:
|
try:
|
||||||
query_params = json.loads(b64decode(str(saved_query.query)))
|
query_params = json.loads(b64decode(str(saved_query.query)).decode())
|
||||||
except ValueError:
|
except ValueError:
|
||||||
# Query deserialization failed. (E.g. was a pickled query)
|
# Query deserialization failed. (E.g. was a pickled query)
|
||||||
return HttpResponseRedirect(reverse('helpdesk:list'))
|
return HttpResponseRedirect(reverse('helpdesk:list'))
|
||||||
@ -1112,7 +1112,7 @@ def run_report(request, report):
|
|||||||
import json
|
import json
|
||||||
from helpdesk.lib import b64decode
|
from helpdesk.lib import b64decode
|
||||||
try:
|
try:
|
||||||
query_params = json.loads(b64decode(str(saved_query.query)))
|
query_params = json.loads(b64decode(str(saved_query.query)).decode())
|
||||||
except:
|
except:
|
||||||
return HttpResponseRedirect(reverse('helpdesk:report_index'))
|
return HttpResponseRedirect(reverse('helpdesk:report_index'))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user