From fec18bb9251aa886f321b9697611c5c68ac52003 Mon Sep 17 00:00:00 2001 From: "ctrlaltca@gmail.com" <> Date: Sat, 16 Jul 2011 10:38:04 +0000 Subject: TActivecustomvalidator _must_ have EnableClientScript=true --- framework/Web/UI/ActiveControls/TActiveCustomValidator.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'framework/Web/UI/ActiveControls/TActiveCustomValidator.php') 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. */ -- cgit v1.2.3