Improved split of tickets.

This commit is contained in:
Martin Edenhofer 2015-01-17 12:56:24 +01:00
parent a25e977edc
commit a400ae3262
2 changed files with 11 additions and 6 deletions

View file

@ -173,7 +173,12 @@ class App.TicketCreate extends App.Controller
t.owner_id = 0
t.customer_id_completion = a.from
t.subject = a.subject || t.title
# convert non text/html from text 2 html
if a.content_type.match(/\/html/)
t.body = a.body
else
t.body = App.Utils.text2html( a.body )
# render page
@render( options: t )