fall back to description or hard-coded title "No title" if ticket has no subject in Zendesk (which is allowed)

This commit is contained in:
Lucas Romero 2017-07-13 09:25:38 +02:00 committed by Thorsten Eckel
parent bd8ba66721
commit 97431be8d6

View file

@ -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,