commit 1185c19cf76d5932d2f26952b940fcffcb49031c
parent 0d454878c7a1d46efd72850f584935d1b2ef96e8
Author: Jan Dankert <develop@jandankert.de>
Date: Fri, 26 Feb 2021 22:47:21 +0100
Fix: Show value subaction for texts.
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/modules/cms/action/text/TextValueAction.class.php b/modules/cms/action/text/TextValueAction.class.php
@@ -7,13 +7,14 @@ use language\Messages;
class TextValueAction extends TextAction implements Method {
+
public function view() {
- $this->setTemplateVar( 'text', $this->text->loadValue() );
- parent::valueView();
+ $this->setTemplateVar( 'text', $this->text->loadValue() );
}
public function post() {
+
$this->text->value = $this->request->getVar('text', RequestParams::FILTER_RAW);
$this->text->saveValue();