summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
Diffstat (limited to 'framework')
-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 30320c5f..abf959cd 100644
--- a/framework/Web/UI/WebControls/TBaseValidator.php
+++ b/framework/Web/UI/WebControls/TBaseValidator.php
@@ -507,7 +507,6 @@ abstract class TBaseValidator extends TLabel implements IValidator
*/
public function validate()
{
- $this->setIsValid(true);
$this->onValidate();
if($this->getVisible(true) && $this->getEnabled(true))
{
@@ -536,6 +535,8 @@ abstract class TBaseValidator extends TLabel implements IValidator
$this->setIsValid(true);
$this->onValidationSuccess();
}
+ } else {
+ $this->setIsValid(true);
}
return $this->getIsValid();
}