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

This commit is contained in:
Sean Harvey 2008-07-01 23:57:07 +00:00
parent 3b9f092ac1
commit fce12220b2

View File

@ -449,7 +449,7 @@ abstract class MultiForm extends Form {
$currentStep = $this->getCurrentStep(); $currentStep = $this->getCurrentStep();
if(is_array($data)) { if(is_array($data)) {
foreach($data as $field => $value) { foreach($data as $field => $value) {
if(in_array($field, self::$ignored_fields) || self::is_action_field($field)) { if(in_array($field, $this->stat('ignored_fields')) || self::is_action_field($field)) {
unset($data[$field]); unset($data[$field]);
} }
} }