Changeset 57218

Show
Ignore:
Timestamp:
02/07/08 11:57:07 (2 months ago)
Author:
sharvey
Message:

ENHANCEMENT Allowed static $ignored_fields to be overloaded on subclass of MultiForm?, so specific fields can be ignored

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • modules/multiform/trunk/code/MultiForm.php

    r56738 r57218  
    450450                if(is_array($data)) { 
    451451                        foreach($data as $field => $value) { 
    452                                 if(in_array($field, self::$ignored_fields) || self::is_action_field($field)) { 
     452                                if(in_array($field, $this->stat('ignored_fields')) || self::is_action_field($field)) { 
    453453                                        unset($data[$field]); 
    454454                                }