diff options
author | ctrlaltca@gmail.com <> | 2011-07-16 10:38:04 +0000 |
---|---|---|
committer | ctrlaltca@gmail.com <> | 2011-07-16 10:38:04 +0000 |
commit | fec18bb9251aa886f321b9697611c5c68ac52003 (patch) | |
tree | 1450429402bb9c967ed4d0e654c3e08c11665577 | |
parent | fedddfd60edb9cfe5bb5a90745ad7d8b963661ac (diff) |
TActivecustomvalidator _must_ have EnableClientScript=true
-rw-r--r-- | framework/Web/UI/ActiveControls/TActiveCustomValidator.php | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/framework/Web/UI/ActiveControls/TActiveCustomValidator.php b/framework/Web/UI/ActiveControls/TActiveCustomValidator.php index b6005231..80d2f522 100644 --- a/framework/Web/UI/ActiveControls/TActiveCustomValidator.php +++ b/framework/Web/UI/ActiveControls/TActiveCustomValidator.php @@ -139,7 +139,17 @@ class TActiveCustomValidator extends TCustomValidator }
}
- /**
+
+ /**
+ * It's mandatory for the EnableClientScript to be activated or the TActiveCustomValidator won't work.
+ * @return boolean whether client-side validation is enabled.
+ */
+ public function getEnableClientScript()
+ {
+ return true;
+ }
+
+ /**
* Ensure that the ID attribute is rendered and registers the javascript code
* for initializing the active control.
*/
|