diff options
author | xue <> | 2006-04-09 17:12:45 +0000 |
---|---|---|
committer | xue <> | 2006-04-09 17:12:45 +0000 |
commit | 46dd185faab6a0387face5700c4b69c69f9f933c (patch) | |
tree | 70542df9111a8aaae00869081f5f7187c43b9aac /framework/Web/UI/TClientScriptManager.php | |
parent | bfa60270a735a7a08a545a9bc1c972e8bf0bc590 (diff) |
Cache key for TOutputCache now also uses PagePath.
Diffstat (limited to 'framework/Web/UI/TClientScriptManager.php')
-rw-r--r-- | framework/Web/UI/TClientScriptManager.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/Web/UI/TClientScriptManager.php b/framework/Web/UI/TClientScriptManager.php index cb945fbf..94ef19b6 100644 --- a/framework/Web/UI/TClientScriptManager.php +++ b/framework/Web/UI/TClientScriptManager.php @@ -171,8 +171,8 @@ class TClientScriptManager extends TApplicationComponent */ public function registerPostBackControl($jsClass,$options) { - if(!isset($options['FormID'])) - $options['FormID']=$this->_page->getForm()->getClientID(); + if(!isset($options['FormID']) && ($form=$this->_page->getForm())!==null) + $options['FormID']=$form->getClientID(); $optionString=TJavaScript::encode($options); $code="new $jsClass($optionString);"; |