Fixed sla overview.

This commit is contained in:
Martin Edenhofer 2016-05-03 08:19:44 +02:00
parent 778c1cdfc1
commit f0ac8d47f4
2 changed files with 5 additions and 5 deletions

View file

@ -1,6 +1,6 @@
# coffeelint: disable=camel_case_classes
class App.UiElement.ticket_selector
@defaults: (attribute) ->
@defaults: (attribute = {}) ->
defaults = ['ticket.state_id']
groups =
@ -38,8 +38,8 @@ class App.UiElement.ticket_selector
tag: 'select'
null: false
options:
create: 'created'
update: 'updated'
create: 'Created'
update: 'Updated'
operator: ['is', 'is not']
for groupKey, groupMeta of groups

View file

@ -15,7 +15,7 @@ class TicketTriggerTest < ActiveSupport::TestCase
'notification.email' => {
'body' => 'some text<br>#{ticket.customer.lastname}<br>#{ticket.title}',
'recipient' => 'ticket_customer',
'subject' => 'Thanks for your inquery (#{ticket.title})!',
'subject' => 'Thanks for your inquiry (#{ticket.title})!',
},
'ticket.priority_id' => {
'value' => Ticket::Priority.lookup(name: '3 high').id.to_s,
@ -78,7 +78,7 @@ class TicketTriggerTest < ActiveSupport::TestCase
assert_equal(1, ticket1.articles.count, 'ticket1.articles verify')
assert_equal(%w(aa kk), Tag.tag_list(object: 'Ticket', o_id: ticket1.id))
article1 = ticket1.articles.last
assert_match('Thanks for your inquery (some <b>title</b> äöüß)!', article1.subject)
assert_match('Thanks for your inquiry (some <b>title</b> äöüß)!', article1.subject)
assert_match('Braun<br>some &lt;b&gt;title&lt;/b&gt;', article1.body)
assert_equal('text/html', article1.content_type)