summaryrefslogtreecommitdiff
path: root/inc/Form/InputElement.php
diff options
context:
space:
mode:
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);
}