mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX: use second argument only if its an array
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@90927 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
050b6057ce
commit
e3f4c266e3
@ -977,7 +977,7 @@ class Form extends RequestHandler {
|
|||||||
|
|
||||||
if($dataFields) foreach($dataFields as $field) {
|
if($dataFields) foreach($dataFields as $field) {
|
||||||
// Skip fields that have been exlcuded
|
// Skip fields that have been exlcuded
|
||||||
if($fieldList && !in_array($field->Name(), $fieldList)) continue;
|
if($fieldList && is_array($fieldList) && !in_array($field->Name(), $fieldList)) continue;
|
||||||
|
|
||||||
|
|
||||||
$saveMethod = "save{$field->Name()}";
|
$saveMethod = "save{$field->Name()}";
|
||||||
|
Loading…
Reference in New Issue
Block a user