diff options
Diffstat (limited to 'framework/Web/UI/WebControls/TBaseValidator.php')
-rw-r--r-- | framework/Web/UI/WebControls/TBaseValidator.php | 6 |
1 files changed, 6 insertions, 0 deletions
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 |