mirror of
https://github.com/silverstripe/silverstripe-multiform
synced 2024-10-22 11:05:49 +02:00
ENHANCEMENT Allowed static $ignored_fields to be overloaded on subclass of MultiForm, so specific fields can be ignored
This commit is contained in:
parent
3b9f092ac1
commit
fce12220b2
@ -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]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user