summaryrefslogtreecommitdiff
path: root/framework/Web/UI
diff options
context:
space:
mode:
authorctrlaltca <>2012-12-28 17:13:50 +0000
committerctrlaltca <>2012-12-28 17:13:50 +0000
commit232d9851fa840d0673e89252a239b3a45ca95e3e (patch)
treeb6d8763fb5412f04dab00b936003d701a40fbbe9 /framework/Web/UI
parenteb5c0cc2715d77dc16a6cfbb64e2503d168367d0 (diff)
Recommitted r3135 that got inadvertently reverted in r3159; fixes #394, #428
Diffstat (limited to 'framework/Web/UI')
-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 db1bba32..08c677b1 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();
}