summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls/TBaseValidator.php
diff options
context:
space:
mode:
authorxue <>2007-07-27 19:37:47 +0000
committerxue <>2007-07-27 19:37:47 +0000
commit5971cea3c452efc18206aa36ef4914c7e49f87e0 (patch)
tree0355ce9737163c2eb2563bcbd5aa8de14b4578ec /framework/Web/UI/WebControls/TBaseValidator.php
parent162d442316c8a9e6c161b589f04332691e57c7f7 (diff)
Validators will not validate disabled controls
Diffstat (limited to 'framework/Web/UI/WebControls/TBaseValidator.php')
-rw-r--r--framework/Web/UI/WebControls/TBaseValidator.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/framework/Web/UI/WebControls/TBaseValidator.php b/framework/Web/UI/WebControls/TBaseValidator.php
index a755d605..96aefe63 100644
--- a/framework/Web/UI/WebControls/TBaseValidator.php
+++ b/framework/Web/UI/WebControls/TBaseValidator.php
@@ -485,7 +485,8 @@ abstract class TBaseValidator extends TLabel implements IValidator
$this->onValidate();
if($this->getVisible(true) && $this->getEnabled(true))
{
- if($this->getValidationTarget())
+ // if the target is not a disabled web control
+ if(($target=$this->getValidationTarget())!==null && !($target instanceof TWebControl && !$target->getEnabled(true)))
{
if($this->evaluateIsValid())
{