openrat-cms

# OpenRat Content Management System
git clone http://git.code.weiherhei.de/openrat-cms.git
Log | Files | Refs

commit c758036f7dbc6eda77b7f2dd76a51fbc9b642570
parent 788fd63ef841af44d5e7007dbf5713a829bf2a2e
Author: Jan Dankert <develop@jandankert.de>
Date:   Sat, 22 Feb 2020 22:56:59 +0100

Fix component: Correct use of default value in selectboxes.

Diffstat:
modules/template_engine/components/html/selectbox/Selectbox.class.php | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/template_engine/components/html/selectbox/Selectbox.class.php b/modules/template_engine/components/html/selectbox/Selectbox.class.php @@ -83,7 +83,7 @@ class SelectboxComponent extends Component $optionLoop = (new PHPBlockElement())->asChildOf($selectbox); if ( $this->default ) - $value = $this->default; + $value = (new Value($this->default))->render(Value::CONTEXT_PHP); else $value = '$'.$this->name;