From 10ae6ed6ee263644d3d7780153520af76215d178 Mon Sep 17 00:00:00 2001 From: xue <> Date: Tue, 6 Dec 2005 15:47:03 +0000 Subject: --- framework/Web/UI/TForm.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'framework/Web/UI/TForm.php') diff --git a/framework/Web/UI/TForm.php b/framework/Web/UI/TForm.php index 4c619299..72eb2e10 100644 --- a/framework/Web/UI/TForm.php +++ b/framework/Web/UI/TForm.php @@ -11,7 +11,7 @@ class TForm extends TControl protected function addAttributesToRender($writer) { $attributes=$this->getAttributes(); - $writer->addAttribute('name',$this->getName()); +// $writer->addAttribute('name',$this->getName()); $writer->addAttribute('method',$this->getMethod()); $writer->addAttribute('action',$this->getApplication()->getRequest()->getRequestURI()); $attributes->remove('name'); @@ -41,7 +41,7 @@ class TForm extends TControl else throw new Exception('Only IButtonControl can be default button.'); } - $writer->addAttribute('id',$this->getUniqueID()); + $writer->addAttribute('id',$this->getClientID()); foreach($attributes as $name=>$value) $writer->addAttribute($name,$value); } -- cgit v1.2.3