$dataFields needs to be indexed by the field name

This commit is contained in:
Simon Welsh 2014-11-02 14:28:29 +11:00
parent f0840f453c
commit 42eeaa3527

View File

@ -238,10 +238,7 @@ class GridFieldBulkActionEditHandler extends GridFieldBulkActionHandler
foreach ($editableFields as $fieldName)
{
array_push(
$dataFields,
$fields->dataFieldByName($fieldName)
);
$dataFields[$fieldName] = $fields->dataFieldByName($fieldName);
}
}
else{