$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
1 changed files with 1 additions and 4 deletions

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{