From 0d6a207d80d498bc1283e5ec8800fb03c99d000b Mon Sep 17 00:00:00 2001 From: Stephan Kasdorf Date: Sat, 5 Sep 2020 18:05:24 +0200 Subject: [PATCH] Version 0.9.5 beta - minor bugfix for the checkbox form element. --- core/c/formattributes.php | 2 ++ core/c/typecheckbox.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/core/c/formattributes.php b/core/c/formattributes.php index 2e4fb38..5da834d 100755 --- a/core/c/formattributes.php +++ b/core/c/formattributes.php @@ -59,6 +59,7 @@ class FormAttributes $this->_element = str_replace(' ID', '', $this->_element); $this->_element = str_replace(' CLASS', '', $this->_element); $this->_element = str_replace(' enctype="ENCTYPE"', '', $this->_element); + $this->_element = str_replace(' checked="CHECKED"', '', $this->_element); $this->_element = str_replace(' onsubmit="ONSUBMIT"', '', $this->_element); $this->_element = str_replace(' onclick="ONCLICK"', '', $this->_element); $this->_element = str_replace(' action="ACTION"', '', $this->_element); @@ -77,6 +78,7 @@ class FormAttributes $this->_element = str_replace(' SELECTED', '', $this->_element); $this->_element = str_replace(' CONTEXT', '', $this->_element); $this->_element = str_replace(' CHECKED', '', $this->_element); + $this->_element = str_replace(' VALUE', '', $this->_element); } /** diff --git a/core/c/typecheckbox.php b/core/c/typecheckbox.php index 82a91fe..5efbde8 100644 --- a/core/c/typecheckbox.php +++ b/core/c/typecheckbox.php @@ -33,7 +33,7 @@ class TypeCheckbox extends FormAttributes implements IForm */ private function _setElement( ) { - $this->_element = '' . 'VALUE
' . "\n"; + $this->_element = '' . ' VALUE
' . "\n"; }