fix(core): Dont attempt to access parent_ticket field during ticket validation if it does not exist
ref: #559 #507
This commit is contained in:
@ -311,7 +311,7 @@ class TicketModelSerializer(
|
||||
|
||||
|
||||
if(
|
||||
data['parent_ticket']
|
||||
data.get('parent_ticket', None)
|
||||
and (
|
||||
self._context['view'].action == 'partial_update'
|
||||
or self._context['view'].action == 'update'
|
||||
|
Reference in New Issue
Block a user