[limb-svn] r5542 - 3.x/trunk/limb/validation/src/rule
svn at limb-project.com
svn at limb-project.com
Thu Apr 5 19:04:49 MSD 2007
Author: pachanga
Date: 2007-04-05 19:04:49 +0400 (Thu, 05 Apr 2007)
New Revision: 5542
URL: http://fisheye.limb-project.com/changelog/limb/?cs=5542
Modified:
3.x/trunk/limb/validation/src/rule/lmbAtleastOneFieldRequiredRule.class.php
Log:
-- more relaxed check
Modified: 3.x/trunk/limb/validation/src/rule/lmbAtleastOneFieldRequiredRule.class.php
===================================================================
--- 3.x/trunk/limb/validation/src/rule/lmbAtleastOneFieldRequiredRule.class.php 2007-04-05 13:31:01 UTC (rev 5541)
+++ 3.x/trunk/limb/validation/src/rule/lmbAtleastOneFieldRequiredRule.class.php 2007-04-05 15:04:49 UTC (rev 5542)
@@ -52,8 +52,10 @@
protected function _findAtleastOneField($datasource)
{
foreach($this->field_names as $field_name)
- if(($value = $datasource->get($field_name)) !== null)
+ {
+ if($value = $datasource->get($field_name))
return true;
+ }
return false;
}
More information about the limb-svn
mailing list