solves Title changed to . (Null title) on failed attachment upload.

This commit is contained in:
Pawel M 2016-03-08 20:09:48 +01:00 committed by Jonathan Barratt
parent 15c67da2a1
commit 94c39cba69
No known key found for this signature in database
GPG Key ID: C007F833B47313DA

View File

@ -461,7 +461,7 @@ def update_ticket(request, ticket_id, public=False):
files = process_attachments(f, request.FILES.getlist('attachment'))
if title != ticket.title:
if title and title != ticket.title:
c = TicketChange(
followup=f,
field=_('Title'),