diff --git a/files/lib/acp/form/FaqQuestionAddForm.class.php b/files/lib/acp/form/FaqQuestionAddForm.class.php index d3a1694..f399e9b 100644 --- a/files/lib/acp/form/FaqQuestionAddForm.class.php +++ b/files/lib/acp/form/FaqQuestionAddForm.class.php @@ -6,6 +6,7 @@ use wcf\data\faq\category\FaqCategoryNodeTree; use wcf\data\faq\QuestionAction; use wcf\data\faq\QuestionEditor; +use wcf\data\IStorableObject; use wcf\form\AbstractFormBuilderForm; use wcf\system\exception\NamedUserException; use wcf\system\form\builder\container\FormContainer; @@ -59,6 +60,8 @@ class FaqQuestionAddForm extends AbstractFormBuilderForm protected $isMultilingual = 0; + protected $multiLingualAnswers = []; + /** * @inheritDoc */ @@ -198,6 +201,13 @@ static function (IFormDocument $document, array $parameters) { } return $parameters; + }, + function (IFormDocument $document, array $data, IStorableObject $object) { + foreach ($this->multiLingualAnswers as $languageID => $answer) { + $data['answer_i18n_' . $languageID] = $answer; + } + + return $data; } )); } diff --git a/package.xml b/package.xml index 5d8a70a..afd8207 100644 --- a/package.xml +++ b/package.xml @@ -6,8 +6,8 @@ Simple FAQ A simple and powerful FAQ for your WSC. Ein simples und leistungsstarkes FAQ für Ihr WSC. - 2.1.2 - 2024-08-09 + 2.1.3 + 2024-08-10 Hanashi Development, Titus Kirch @@ -34,7 +34,7 @@ acp/database/install_dev.tkirch.wsc.faq.php - +