summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls/THiddenField.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Web/UI/WebControls/THiddenField.php')
-rw-r--r--framework/Web/UI/WebControls/THiddenField.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/framework/Web/UI/WebControls/THiddenField.php b/framework/Web/UI/WebControls/THiddenField.php
index 8a8a0c8a..acead9f0 100644
--- a/framework/Web/UI/WebControls/THiddenField.php
+++ b/framework/Web/UI/WebControls/THiddenField.php
@@ -59,6 +59,13 @@ class THiddenField extends TControl implements IPostBackDataHandler, IValidatabl
$writer->addAttribute('id',$this->getClientID());
if(($value=$this->getValue())!=='')
$writer->addAttribute('value',$value);
+
+ if($this->getHasAttributes())
+ {
+ foreach($this->getAttributes() as $name=>$value)
+ $writer->addAttribute($name,$value);
+ }
+
$writer->renderBeginTag('input');
$writer->renderEndTag();
}