Skip to content

Commit

Permalink
Merge pull request #9 from tkirchDev/inputprocessor
Browse files Browse the repository at this point in the history
HTMLInputProcessor implemented
  • Loading branch information
TitusKirch authored May 12, 2020
2 parents 9bfdb5a + 675b63c commit 96e962a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions files/lib/data/faq/QuestionAction.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
}
}
}

Expand Down

0 comments on commit 96e962a

Please sign in to comment.