From a26837b0990f65b7091263026296d2aff68d9838 Mon Sep 17 00:00:00 2001 From: "ctrlaltca@gmail.com" <> Date: Wed, 18 Jan 2012 09:35:07 +0000 Subject: fixed #380 (TCustomValidator's ControlToValidate should be optional); added a quickstart example, updated 2 tests that were broken + HISTORY --- framework/Web/UI/WebControls/TCustomValidator.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'framework/Web/UI/WebControls/TCustomValidator.php') diff --git a/framework/Web/UI/WebControls/TCustomValidator.php b/framework/Web/UI/WebControls/TCustomValidator.php index 7d0c8234..cc11c7a6 100644 --- a/framework/Web/UI/WebControls/TCustomValidator.php +++ b/framework/Web/UI/WebControls/TCustomValidator.php @@ -107,10 +107,7 @@ class TCustomValidator extends TBaseValidator { $param=new TServerValidateEventParameter($value,true); $this->raiseEvent('OnServerValidate',$this,$param); - if($this->getValidationTarget()==null) - return true; - else - return $param->getIsValid(); + return $param->getIsValid(); } /** -- cgit v1.2.3