[Solar-svn] Revision 3127

pmjones at solarphp.com pmjones at solarphp.com
Fri Apr 25 08:11:00 CDT 2008


Solar_Filter: [CHG] (Possible break?) In method applyChain(), when a validation fails on an element, no more filters are processed on that element (as vs processing every filter regardless of validation of previous filters).


Modified: trunk/Solar/Filter.php
===================================================================
--- trunk/Solar/Filter.php	2008-04-25 13:09:00 UTC (rev 3126)
+++ trunk/Solar/Filter.php	2008-04-25 13:10:55 UTC (rev 3127)
@@ -625,6 +625,8 @@
                 // invalid message and translate it.
                 $invalid = $this->getFilter($method)->getInvalid();
                 $this->_chain_invalid[$key][] = $this->_chainLocale($invalid);
+                // skip remaining filters on this key
+                return;
             }
         }
     }




More information about the Solar-svn mailing list