Fixed bug: Twitter articles are created without type, state and priortiy.
This commit is contained in:
parent
f8393abcf9
commit
6fc6a26150
1 changed files with 4 additions and 4 deletions
|
@ -112,8 +112,8 @@ class Tweet
|
|||
customer_id: user.id,
|
||||
title: "#{tweet.text[0, 37]}...",
|
||||
group_id: group_id,
|
||||
state: Ticket::State.find_by( name: 'new' ),
|
||||
priority: Ticket::Priority.find_by( name: '2 normal' ),
|
||||
state_id: Ticket::State.find_by( name: 'new' ).id,
|
||||
priority_id: Ticket::Priority.find_by( name: '2 normal' ).id,
|
||||
)
|
||||
end
|
||||
|
||||
|
@ -153,8 +153,8 @@ class Tweet
|
|||
message_id: tweet.id,
|
||||
ticket_id: ticket.id,
|
||||
in_reply_to: in_reply_to,
|
||||
type: Ticket::Article::Type.find_by( name: article_type ),
|
||||
sender: Ticket::Article::Sender.find_by( name: 'Customer' ),
|
||||
type_id: Ticket::Article::Type.find_by( name: article_type ).id,
|
||||
sender_id: Ticket::Article::Sender.find_by( name: 'Customer' ).id,
|
||||
internal: false,
|
||||
)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue