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
t.body = a.body
# 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 )

View file

@ -1653,11 +1653,11 @@ class Article extends App.Controller
type: 'replyAll'
href: '#'
}
actions.push {
name: 'split'
type: 'split'
href: '#ticket/create/' + @article.ticket_id + '/' + @article.id
}
actions.push {
name: 'split'
type: 'split'
href: '#ticket/create/' + @article.ticket_id + '/' + @article.id
}
@article.actions = actions
attachments: ->