function addSuggestedSolution() { $_SESSION["subquestion_index"] = 0; if ($_POST["cmd"]["addSuggestedSolution"]) { if ($this->writePostData()) { ilUtil::sendInfo($this->getErrorMessage()); $this->editQuestion(); return; } if (!$this->checkInput()) { ilUtil::sendInfo($this->lng->txt("fill_out_all_required_fields_add_answer")); $this->editQuestion(); return; } } $this->object->saveToDb(); $this->ctrl->setParameter($this, "q_id", $this->object->getId()); $this->tpl->setVariable("HEADER", $this->object->getTitle()); $this->getQuestionTemplate(); parent::addSuggestedSolution(); }