Fixed missing updated_by_id.
This commit is contained in:
parent
5b4a8f70ae
commit
36a6bfdb8d
1 changed files with 4 additions and 1 deletions
|
@ -277,7 +277,8 @@ class Channel::EmailParser
|
||||||
:password => '',
|
:password => '',
|
||||||
:active => true,
|
:active => true,
|
||||||
:roles => roles,
|
:roles => roles,
|
||||||
:created_by_id => 1
|
:updated_by_id => 1,
|
||||||
|
:created_by_id => 1,
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -313,6 +314,7 @@ class Channel::EmailParser
|
||||||
:title => mail[:subject] || '',
|
:title => mail[:subject] || '',
|
||||||
:ticket_state_id => Ticket::State.where( :name => 'new' ).first.id,
|
:ticket_state_id => Ticket::State.where( :name => 'new' ).first.id,
|
||||||
:ticket_priority_id => Ticket::Priority.where( :name => '2 normal' ).first.id,
|
:ticket_priority_id => Ticket::Priority.where( :name => '2 normal' ).first.id,
|
||||||
|
:updated_by_id => user.id,
|
||||||
:created_by_id => user.id,
|
:created_by_id => user.id,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -338,6 +340,7 @@ class Channel::EmailParser
|
||||||
end
|
end
|
||||||
article_attributes = {
|
article_attributes = {
|
||||||
:created_by_id => user.id,
|
:created_by_id => user.id,
|
||||||
|
:updated_by_id => user.id,
|
||||||
:ticket_id => ticket.id,
|
:ticket_id => ticket.id,
|
||||||
:ticket_article_type_id => Ticket::Article::Type.where( :name => 'email' ).first.id,
|
:ticket_article_type_id => Ticket::Article::Type.where( :name => 'email' ).first.id,
|
||||||
:ticket_article_sender_id => Ticket::Article::Sender.where( :name => 'Customer' ).first.id,
|
:ticket_article_sender_id => Ticket::Article::Sender.where( :name => 'Customer' ).first.id,
|
||||||
|
|
Loading…
Reference in a new issue