From 675b63c81913f9ea0e91ec4df7ea7748f2f97bf2 Mon Sep 17 00:00:00 2001 From: Peter Lohse Date: Tue, 12 May 2020 18:15:59 +0200 Subject: [PATCH] HTMLInputProcessor implemented --- files/lib/data/faq/QuestionAction.class.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/files/lib/data/faq/QuestionAction.class.php b/files/lib/data/faq/QuestionAction.class.php index 5076481..09cdfe5 100644 --- a/files/lib/data/faq/QuestionAction.class.php +++ b/files/lib/data/faq/QuestionAction.class.php @@ -71,6 +71,10 @@ public function create() { if (isset($this->parameters['answer_attachmentHandler']) && $this->parameters['answer_attachmentHandler'] !== null) { $this->parameters['answer_attachmentHandler']->updateObjectID($question->questionID); + } + + if (!empty($this->parameters['answer_htmlInputProcessor'])) { + $this->parameters['answer_htmlInputProcessor']->setObjectID($question->questionID); } return $question; @@ -140,6 +144,10 @@ public function update() { if (isset($this->parameters['answer_attachmentHandler']) && $this->parameters['answer_attachmentHandler'] !== null) { $this->parameters['answer_attachmentHandler']->updateObjectID($object->questionID); } + + if (!empty($this->parameters['answer_htmlInputProcessor'])) { + $this->parameters['answer_htmlInputProcessor']->setObjectID($object->questionID); + } } }