Followup d0b5cbfe4b - Fixes #3243 - Relational report filters do not work (ticket.organization.*, ticket.article.*, ticket.customer.*).

This commit is contained in:
Rolf Schmidt 2021-02-11 08:56:22 +01:00 committed by Thorsten Eckel
parent 215801ef95
commit 5aabd5c308

View file

@ -11,7 +11,8 @@ class KnowledgeBase::Answer::Translation < ApplicationModel
belongs_to :kb_locale, class_name: 'KnowledgeBase::Locale', inverse_of: :answer_translations belongs_to :kb_locale, class_name: 'KnowledgeBase::Locale', inverse_of: :answer_translations
belongs_to :answer, class_name: 'KnowledgeBase::Answer', inverse_of: :translations, touch: true belongs_to :answer, class_name: 'KnowledgeBase::Answer', inverse_of: :translations, touch: true
#belongs_to :updated_by, class_name: 'User', inverse_of: :answer_translations belongs_to :created_by, class_name: 'User'
belongs_to :updated_by, class_name: 'User'
belongs_to :content, class_name: 'KnowledgeBase::Answer::Translation::Content', inverse_of: :translation, dependent: :destroy belongs_to :content, class_name: 'KnowledgeBase::Answer::Translation::Content', inverse_of: :translation, dependent: :destroy
accepts_nested_attributes_for :content, update_only: true accepts_nested_attributes_for :content, update_only: true