Changeset 3124

Show
Ignore:
Timestamp:
04/18/08 09:07:01 (3 months ago)
Author:
pmjones
Message:

Solar_Form_Load_Model: [CHG] When a 'validateUpload' filter is present, change the input type to 'file'.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Solar/Form/Load/Model.php

    r3087 r3124  
    165165                    } 
    166166                     
    167                     // if there is a filter to 'validateInList' or 'validateInKeys', 
    168                     // make this a select element. 
    169167                    foreach ($filters as $v) { 
     168                        // if there is a filter to 'validateInList' or 
     169                        // 'validateInKeys', make this a select element. 
    170170                        if ($v[0] == 'validateInKeys' || $v[0] == 'validateInList') { 
    171171                            $info['type'] = 'select'; 
     172                            break; 
     173                        } 
     174                        // if there is a filter to 'validateUpload', make this 
     175                        // a file element 
     176                        if ($v[0] == 'validateUpload') { 
     177                            $info['type'] = 'file'; 
    172178                            break; 
    173179                        }