Fixed issue #655 - Ticket were shown twice.

This commit is contained in:
Rolf Schmidt 2017-04-25 16:10:38 +02:00
parent bcd8edc286
commit 743cabc2fa

View file

@ -57,7 +57,6 @@ class Ticket < ApplicationModel
belongs_to :group, class_name: 'Group' belongs_to :group, class_name: 'Group'
has_many :articles, class_name: 'Ticket::Article', after_add: :cache_update, after_remove: :cache_update has_many :articles, class_name: 'Ticket::Article', after_add: :cache_update, after_remove: :cache_update
has_many :ticket_time_accounting, class_name: 'Ticket::TimeAccounting', dependent: :destroy has_many :ticket_time_accounting, class_name: 'Ticket::TimeAccounting', dependent: :destroy
has_many :recent_views, class_name: 'RecentView', foreign_key: 'o_id', dependent: :destroy
belongs_to :organization, class_name: 'Organization' belongs_to :organization, class_name: 'Organization'
belongs_to :state, class_name: 'Ticket::State' belongs_to :state, class_name: 'Ticket::State'
belongs_to :priority, class_name: 'Ticket::Priority' belongs_to :priority, class_name: 'Ticket::Priority'