summaryrefslogtreecommitdiff
path: root/framework/Web/UI/TForm.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Web/UI/TForm.php')
-rw-r--r--framework/Web/UI/TForm.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/framework/Web/UI/TForm.php b/framework/Web/UI/TForm.php
index 72eb2e10..dc19fc6d 100644
--- a/framework/Web/UI/TForm.php
+++ b/framework/Web/UI/TForm.php
@@ -14,6 +14,8 @@ class TForm extends TControl
// $writer->addAttribute('name',$this->getName());
$writer->addAttribute('method',$this->getMethod());
$writer->addAttribute('action',$this->getApplication()->getRequest()->getRequestURI());
+ if(($enctype=$this->getEnctype())!=='')
+ $writer->addAttribute('enctype',$enctype);
$attributes->remove('name');
$attributes->remove('method');
$attributes->remove('action');