mirror of
https://github.com/colymba/GridFieldBulkEditingTools.git
synced 2024-10-22 11:05:57 +02:00
Test if a field is returned by getCMSFields()
Should not happen unless the field was manually removed within getCMSFields()
This commit is contained in:
parent
26690ba84d
commit
86e2773663
@ -311,7 +311,10 @@ class GridFieldBulkImageUpload_Request extends RequestHandler {
|
||||
$recordEditableFieldsForms = array();
|
||||
foreach ( $this->getRecordEditableFields() as $editableFieldName )
|
||||
{
|
||||
array_push($recordEditableFieldsForms, $this->parseFieldHTMLWithRecordID($this->getFieldEditForm($editableFieldName)->FieldHolder(), $record->ID) );
|
||||
$formField = $this->getFieldEditForm($editableFieldName);
|
||||
if ( $formField ) {
|
||||
array_push($recordEditableFieldsForms, $this->parseFieldHTMLWithRecordID($formField->FieldHolder(), $record->ID) );
|
||||
}
|
||||
}
|
||||
|
||||
// Collect all output data.
|
||||
|
Loading…
Reference in New Issue
Block a user