summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruacaman <>2011-06-01 22:02:53 +0000
committeruacaman <>2011-06-01 22:02:53 +0000
commit6521eecc250d756a9bb1a8b2f9a2c6a579accadd (patch)
tree21037d3b97de903eb464ebe5ddf23be1b2e8b652
parent42e6d7ecea063d81e168cdb5009ddc89ea2da3b6 (diff)
Issue 8
-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
{