summaryrefslogtreecommitdiff
path: root/framework/Web/UI/TPage.php
diff options
context:
space:
mode:
authorxue <>2006-01-21 03:57:16 +0000
committerxue <>2006-01-21 03:57:16 +0000
commitbaf2eb12bc99905ad18fadaa4a542a0d109f9245 (patch)
treecb02339aabb9e11e487108a85668fbf242c21326 /framework/Web/UI/TPage.php
parent039ef5bb2acd9cde5073e4d20459f9d088f0892e (diff)
TTextBox demo completed. Fixed a few issues related with AutoPostBack=true.
Diffstat (limited to 'framework/Web/UI/TPage.php')
-rw-r--r--framework/Web/UI/TPage.php12
1 files changed, 2 insertions, 10 deletions
diff --git a/framework/Web/UI/TPage.php b/framework/Web/UI/TPage.php
index ba0d8003..1dcc0b99 100644
--- a/framework/Web/UI/TPage.php
+++ b/framework/Web/UI/TPage.php
@@ -287,17 +287,9 @@ class TPage extends TTemplateControl
if($this->_validators && $this->_validators->getCount())
{
Prado::trace("Page validate",'System.Web.UI.TPage');
- if($validationGroup==='')
- {
- foreach($this->_validators as $validator)
+ foreach($this->_validators as $validator)
+ if($validator->getValidationGroup()===$validationGroup)
$validator->validate();
- }
- else
- {
- foreach($this->_validators as $validator)
- if($validator->getValidationGroup()===$validationGroup)
- $validator->validate();
- }
}
}