forked from extern/django-helpdesk
BUGFIX: new TicketCC instances must be returned after subscribed to Ticket updates.
This commit is contained in:
parent
0f346924fb
commit
4e32e879a8
@ -358,7 +358,7 @@ def subscribe_to_ticket_updates(ticket, user=None, email=None, can_view=True, ca
|
|||||||
ticketcc = ticket_cc_form.save(commit=False)
|
ticketcc = ticket_cc_form.save(commit=False)
|
||||||
ticketcc.ticket = ticket
|
ticketcc.ticket = ticket
|
||||||
ticketcc.save()
|
ticketcc.save()
|
||||||
return ticketcc.save()
|
return ticketcc
|
||||||
else:
|
else:
|
||||||
raise ValidationError(
|
raise ValidationError(
|
||||||
_('Could not create subscribe contact to ticket updated. Errors: {}'.format(ticket_cc_form.errors))
|
_('Could not create subscribe contact to ticket updated. Errors: {}'.format(ticket_cc_form.errors))
|
||||||
|
Loading…
Reference in New Issue
Block a user