From 0d858a2077101ad708bb60990ce46a0e3032ad0f Mon Sep 17 00:00:00 2001 From: blackholll Date: Sun, 9 Aug 2020 10:48:58 +0800 Subject: [PATCH] bugfix: ticket's transition api return wrong format result when user has no permission to handle the ticket --- service/ticket/ticket_base_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/ticket/ticket_base_service.py b/service/ticket/ticket_base_service.py index 41b23679..e60898d3 100644 --- a/service/ticket/ticket_base_service.py +++ b/service/ticket/ticket_base_service.py @@ -1011,7 +1011,7 @@ def get_ticket_transition(cls, ticket_id: int, username: str)->tuple: return False, result if not result.get('permission'): - return True, dict(result=[], msg=result.get('msg')) + return True, dict(transition_dict_list=[], msg=result.get('msg')) ticket_obj = TicketRecord.objects.filter(id=ticket_id).first()