mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX Use complete fieldlist for extracting data
This commit is contained in:
parent
cffb11e568
commit
899eb0b235
@ -1280,7 +1280,7 @@ class Form extends RequestHandler {
|
||||
if(is_object($data)) $this->record = $data;
|
||||
|
||||
// dont include fields without data
|
||||
$dataFields = $this->fields->dataFields();
|
||||
$dataFields = $this->Fields()->dataFields();
|
||||
if($dataFields) foreach($dataFields as $field) {
|
||||
$name = $field->getName();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user