Changeset 2360

Show
Ignore:
Timestamp:
03/27/08 13:18:02 (3 months ago)
Author:
Shadowhand
Message:

Moving the non-submitted return in Validation to happen *after* pre_filters are called, to allow pre-filling forms. Thanks Geert!

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/system/libraries/Validation.php

    r2357 r2360  
    343343                } 
    344344 
    345                 if ($this->submitted === FALSE) 
    346                         return FALSE; 
    347  
    348345                // Reset all fields to ALL defined fields 
    349346                $all_fields = array_keys($this->getArrayCopy()); 
     
    368365                        } 
    369366                } 
     367 
     368                if ($this->submitted === FALSE) 
     369                        return FALSE; 
    370370 
    371371                foreach ($this->rules as $field => $calls)