From 97431be8d6841c630a308d05ff3e72ad1a389838 Mon Sep 17 00:00:00 2001 From: Lucas Romero Date: Thu, 13 Jul 2017 09:25:38 +0200 Subject: [PATCH] fall back to description or hard-coded title "No title" if ticket has no subject in Zendesk (which is allowed) --- lib/import/zendesk/ticket.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/import/zendesk/ticket.rb b/lib/import/zendesk/ticket.rb index 5e36420ef..af6e3d104 100644 --- a/lib/import/zendesk/ticket.rb +++ b/lib/import/zendesk/ticket.rb @@ -39,7 +39,7 @@ module Import { id: ticket.id, - title: ticket.subject, + title: ticket.subject || ticket.description || "No title", owner_id: Import::Zendesk::UserFactory.local_id( ticket.assignee ) || 1, note: ticket.description, group_id: Import::Zendesk::GroupFactory.local_id( ticket.group_id ) || 1,