From 5aabd5c3084014d09282944298965d0a551e5296 Mon Sep 17 00:00:00 2001 From: Rolf Schmidt Date: Thu, 11 Feb 2021 08:56:22 +0100 Subject: [PATCH] Followup d0b5cbfe4b2aeccb5ace6a546a5104c298af891b - Fixes #3243 - Relational report filters do not work (ticket.organization.*, ticket.article.*, ticket.customer.*). --- app/models/knowledge_base/answer/translation.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/models/knowledge_base/answer/translation.rb b/app/models/knowledge_base/answer/translation.rb index 0e1dfe7c0..ea275bec4 100644 --- a/app/models/knowledge_base/answer/translation.rb +++ b/app/models/knowledge_base/answer/translation.rb @@ -11,7 +11,8 @@ class KnowledgeBase::Answer::Translation < ApplicationModel 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 :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 accepts_nested_attributes_for :content, update_only: true