diff options
author | xue <> | 2006-04-17 22:10:49 +0000 |
---|---|---|
committer | xue <> | 2006-04-17 22:10:49 +0000 |
commit | d813a484809142c5cce2e50bff0f805630cea7d9 (patch) | |
tree | 4c9e145601a3cdcc9bff4c2ff5f2cf8d53dc47e1 /framework/Web/UI/WebControls/TWizard.php | |
parent | 0f2b34ef1ad76d94f43062f396b7a63e76051659 (diff) |
TButton, TImageButton and TLinkButton now implement IButtonControl interface
Diffstat (limited to 'framework/Web/UI/WebControls/TWizard.php')
-rw-r--r-- | framework/Web/UI/WebControls/TWizard.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/Web/UI/WebControls/TWizard.php b/framework/Web/UI/WebControls/TWizard.php index 67b84ccd..0db7180e 100644 --- a/framework/Web/UI/WebControls/TWizard.php +++ b/framework/Web/UI/WebControls/TWizard.php @@ -1078,7 +1078,7 @@ class TWizard extends TWebControl implements INamingContainer // if the button clicked causes validation which fails,
// by default we will cancel navigation to the new step
$button=$param->getCommandSource();
- if($button->canGetProperty('CausesValidation') && $button->getCausesValidation() && ($page=$this->getPage())!==null && !$page->getIsValid())
+ if(($button instanceof IButtonControl) && $button->getCausesValidation() && ($page=$this->getPage())!==null && !$page->getIsValid())
$navParam->setCancelNavigation(true);
$this->_activeStepIndexSet=false;
@@ -1293,7 +1293,7 @@ class TWizard extends TWebControl implements INamingContainer $type=$this->getStepType($this->getActiveStep());
$index=$this->getActiveStepIndex();
$navParam=new TWizardNavigationEventParameter($index);
- if($sender->canGetProperty('CausesValidation') && $sender->getCausesValidation() && ($page=$this->getPage())!==null && !$page->getIsValid())
+ if(($sender instanceof IButtonControl) && $sender->getCausesValidation() && ($page=$this->getPage())!==null && !$page->getIsValid())
$navParam->setCancelNavigation(true);
$handled=false;
|