diff options
Diffstat (limited to 'framework')
-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.
*/
|