Version 0.9.5 beta - minor bugfix for the checkbox form element.

This commit is contained in:
Stephan Kasdorf
2020-09-05 18:05:24 +02:00
parent 49ffcdeebd
commit 0d6a207d80
2 changed files with 3 additions and 1 deletions

View File

@@ -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);
}
/**

View File

@@ -33,7 +33,7 @@ class TypeCheckbox extends FormAttributes implements IForm
*/
private function _setElement( )
{
$this->_element = '<input type="checkbox" name="NAME" value="VALUE" CHECKED ID CLASS>' . 'VALUE<br>' . "\n";
$this->_element = '<input type="checkbox" name="NAME" value="VALUE" ID CLASS checked="CHECKED" CHECKED>' . ' VALUE<br>' . "\n";
}