From 384a8f108e3de0e2475d4267732b0f3ffabb7541 Mon Sep 17 00:00:00 2001 From: xue <> Date: Wed, 11 Jan 2006 00:16:33 +0000 Subject: --- framework/Web/UI/WebControls/TBaseValidator.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'framework/Web/UI/WebControls/TBaseValidator.php') diff --git a/framework/Web/UI/WebControls/TBaseValidator.php b/framework/Web/UI/WebControls/TBaseValidator.php index d82150ca..1f1d0b1b 100644 --- a/framework/Web/UI/WebControls/TBaseValidator.php +++ b/framework/Web/UI/WebControls/TBaseValidator.php @@ -105,6 +105,12 @@ abstract class TBaseValidator extends TLabel implements IValidator $this->getPage()->getValidators()->add($this); } + protected function onUnload($param) + { + $this->getPage()->getValidators()->remove($this); + parent::onUnload($param); + } + /** * Adds attributes to renderer. * @param THtmlWriter the renderer -- cgit v1.2.3