diff options
author | Andreas Gohr <andi@splitbrain.org> | 2015-08-18 19:28:45 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2015-08-18 19:31:37 +0200 |
commit | 08099e4fe1e56308bc42cc639d187863088494bd (patch) | |
tree | 84a32fe9c0fd25dc2e7fe436d0c2fe36ac593468 /inc | |
parent | 2bc52ea3fb04118a428b5719c861c797f9fc0fae (diff) | |
download | rpg-08099e4fe1e56308bc42cc639d187863088494bd.tar.gz rpg-08099e4fe1e56308bc42cc639d187863088494bd.tar.bz2 |
Form: correctly set type attribute for inputs #1312
Diffstat (limited to 'inc')
-rw-r--r-- | inc/Form/InputElement.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/inc/Form/InputElement.php b/inc/Form/InputElement.php index 5908f7d11..693eeffc5 100644 --- a/inc/Form/InputElement.php +++ b/inc/Form/InputElement.php @@ -29,6 +29,7 @@ class InputElement extends Element { public function __construct($type, $name, $label = '') { parent::__construct($type, array('name' => $name)); $this->attr('name', $name); + $this->attr('type', $type); if($label) $this->label = new Label($label); } |