mirror of
https://github.com/colymba/GridFieldBulkEditingTools.git
synced 2024-10-22 11:05:57 +02:00
FIX #7 $has_one config is now inherited
Fixes bug where no default $has_one field would be found if the relation is on the parent class
This commit is contained in:
parent
beb1d46aa6
commit
efe4e35c9c
@ -105,7 +105,7 @@ class GridFieldBulkImageUpload_Request extends RequestHandler {
|
||||
function getDefaultRecordImageField()
|
||||
{
|
||||
$recordClass = $this->gridField->list->dataClass;
|
||||
$recordHasOneFields = Config::inst()->get($recordClass, 'has_one', Config::UNINHERITED);
|
||||
$recordHasOneFields = Config::inst()->get($recordClass, 'has_one', Config::INHERITED);
|
||||
|
||||
$imageField = null;
|
||||
foreach( $recordHasOneFields as $field => $type )
|
||||
|
Loading…
Reference in New Issue
Block a user