diff options
author | wei <> | 2007-03-27 08:34:28 +0000 |
---|---|---|
committer | wei <> | 2007-03-27 08:34:28 +0000 |
commit | d5950ec0b553d46c4800adc0532d4464a4eb1883 (patch) | |
tree | 232a4f5ccbd36d6a114dff383adb383793422814 /framework/Web/UI | |
parent | cdf3ba1c190393d86460f8c13073dc9784436b3e (diff) |
Fixed #278, conditional validation.
Diffstat (limited to 'framework/Web/UI')
-rw-r--r-- | framework/Web/UI/WebControls/TBaseValidator.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/Web/UI/WebControls/TBaseValidator.php b/framework/Web/UI/WebControls/TBaseValidator.php index ac2d53b8..99a81375 100644 --- a/framework/Web/UI/WebControls/TBaseValidator.php +++ b/framework/Web/UI/WebControls/TBaseValidator.php @@ -483,9 +483,9 @@ abstract class TBaseValidator extends TLabel implements IValidator public function validate() { $this->setIsValid(true); + $this->onValidate(); if($this->getVisible(true) && $this->getEnabled(true)) { - $this->onValidate(); if($this->getValidationTarget()) { if($this->evaluateIsValid()) |