summaryrefslogtreecommitdiff
path: root/inc/Form/InputElement.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2015-08-18 19:28:45 +0200
committerAndreas Gohr <andi@splitbrain.org>2015-08-18 19:31:37 +0200
commit08099e4fe1e56308bc42cc639d187863088494bd (patch)
tree84a32fe9c0fd25dc2e7fe436d0c2fe36ac593468 /inc/Form/InputElement.php
parent2bc52ea3fb04118a428b5719c861c797f9fc0fae (diff)
downloadrpg-08099e4fe1e56308bc42cc639d187863088494bd.tar.gz
rpg-08099e4fe1e56308bc42cc639d187863088494bd.tar.bz2
Form: correctly set type attribute for inputs #1312
Diffstat (limited to 'inc/Form/InputElement.php')
-rw-r--r--inc/Form/InputElement.php1
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);
}