summaryrefslogtreecommitdiff
path: root/framework/Web/UI/TForm.php
diff options
context:
space:
mode:
authorxue <>2006-04-08 17:00:05 +0000
committerxue <>2006-04-08 17:00:05 +0000
commitccf0cd0f8d6480238db531f46ae1c70554d0e90d (patch)
tree42dad36e6d3c3ee2e9affa71615257f848cff552 /framework/Web/UI/TForm.php
parent325b2ab61e3cf03e9ae7fb03ee1030cae6b08b3e (diff)
Added TOutputCache.
Diffstat (limited to 'framework/Web/UI/TForm.php')
-rw-r--r--framework/Web/UI/TForm.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/Web/UI/TForm.php b/framework/Web/UI/TForm.php
index 317b0158..948dea3e 100644
--- a/framework/Web/UI/TForm.php
+++ b/framework/Web/UI/TForm.php
@@ -58,7 +58,7 @@ class TForm extends TControl
if(($butt=$this->getDefaultButton())!=='')
{
if(($button=$this->findControl($butt))!==null)
- $this->getPage()->getClientScript()->registerDefaultButton($this,$button);
+ $this->getPage()->getClientScript()->registerDefaultButton($this->getClientID(),$button->getClientID());
else
throw new TInvalidDataValueException('form_defaultbutton_invalid',$butt);
}