diff options
author | mikl <> | 2008-10-13 21:40:53 +0000 |
---|---|---|
committer | mikl <> | 2008-10-13 21:40:53 +0000 |
commit | e53fad78d31caa06c2e046ea49a9f894f9ea685a (patch) | |
tree | 06b82236e994864c79ce78f225e4c181e2e04cea /framework/Web/UI/WebControls/TBaseValidator.php | |
parent | 210f6d6d29be3c93251a515616408c0872d6da26 (diff) |
Fixed #595 (reopened)
Diffstat (limited to 'framework/Web/UI/WebControls/TBaseValidator.php')
-rw-r--r-- | framework/Web/UI/WebControls/TBaseValidator.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/framework/Web/UI/WebControls/TBaseValidator.php b/framework/Web/UI/WebControls/TBaseValidator.php index add771cc..9a298adb 100644 --- a/framework/Web/UI/WebControls/TBaseValidator.php +++ b/framework/Web/UI/WebControls/TBaseValidator.php @@ -269,8 +269,11 @@ abstract class TBaseValidator extends TLabel implements IValidator { $class = preg_replace ('/ '.preg_quote($cssClass).'/', '',$control->getCssClass()); if(!$this->getIsValid()) + { $class .= ' '.$cssClass; - $control->setCssClass($class); + $control->setCssClass($class); + } elseif ($control->getIsValid()) + $control->setCssClass($class); } } } @@ -504,6 +507,7 @@ abstract class TBaseValidator extends TLabel implements IValidator } else { + $target->setIsValid(false); $this->setIsValid(false); $this->onValidationError(); } |