Fixed bug: Closed direct-message tickets get reopened instead of not-closed reused.

This commit is contained in:
Thorsten Eckel 2015-07-09 14:58:19 +02:00
parent 4df77067cc
commit 01df55e6de

View file

@ -99,7 +99,7 @@ class Tweet
if tweet.class.to_s == 'Twitter::DirectMessage'
ticket = Ticket.find_by(
customer_id: user.id,
state: Ticket::State.where(
state: Ticket::State.where.not(
state_type_id: Ticket::StateType.where(
name: 'closed',
)