summaryrefslogtreecommitdiff
path: root/framework/Web
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Web')
-rw-r--r--framework/Web/Javascripts/source/prado/validator/validation3.js2
-rw-r--r--framework/Web/UI/TPage.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/framework/Web/Javascripts/source/prado/validator/validation3.js b/framework/Web/Javascripts/source/prado/validator/validation3.js
index 6d42365a..0b53859d 100644
--- a/framework/Web/Javascripts/source/prado/validator/validation3.js
+++ b/framework/Web/Javascripts/source/prado/validator/validation3.js
@@ -480,7 +480,7 @@ Prado.ValidationManager.prototype =
this.summaries.each(function(summary)
{
var inGroup = group && summary.group == group;
- var noGroup = !group && !summary.group;
+ var noGroup = !group || !summary.group;
if(inGroup || noGroup)
summary.updateSummary(validators, refresh);
else
diff --git a/framework/Web/UI/TPage.php b/framework/Web/UI/TPage.php
index 0405309d..5405391d 100644
--- a/framework/Web/UI/TPage.php
+++ b/framework/Web/UI/TPage.php
@@ -470,7 +470,7 @@ class TPage extends TTemplateControl implements IPageEvents
{
if(!$this->_validators)
$this->_validators=new TList;
- if($validationGroup===null)
+ if(empty($validationGroup) === true)
return $this->_validators;
else
{