mirror of
https://github.com/colymba/GridFieldBulkEditingTools.git
synced 2024-10-22 11:05:57 +02:00
Removed obsolete Config::INHERITED
constant for SS4 (#140)
inherited behaviour is now default in SS4
This commit is contained in:
parent
182109d890
commit
5d8a1c3abd
@ -249,7 +249,7 @@ class BulkUploader implements GridField_HTMLProvider, GridField_URLHandler
|
|||||||
public function getDefaultFileRelationName($gridField)
|
public function getDefaultFileRelationName($gridField)
|
||||||
{
|
{
|
||||||
$recordClass = $this->getRecordClassName($gridField);
|
$recordClass = $this->getRecordClassName($gridField);
|
||||||
$hasOneFields = Config::inst()->get($recordClass, 'has_one', Config::INHERITED);
|
$hasOneFields = Config::inst()->get($recordClass, 'has_one');
|
||||||
|
|
||||||
$imageField = null;
|
$imageField = null;
|
||||||
foreach ($hasOneFields as $field => $type) {
|
foreach ($hasOneFields as $field => $type) {
|
||||||
@ -290,7 +290,7 @@ class BulkUploader implements GridField_HTMLProvider, GridField_URLHandler
|
|||||||
public function getFileRelationClassName($gridField)
|
public function getFileRelationClassName($gridField)
|
||||||
{
|
{
|
||||||
$recordClass = $this->getRecordClassName($gridField);
|
$recordClass = $this->getRecordClassName($gridField);
|
||||||
$hasOneFields = Config::inst()->get($recordClass, 'has_one', Config::INHERITED);
|
$hasOneFields = Config::inst()->get($recordClass, 'has_one');
|
||||||
|
|
||||||
$fieldName = $this->getFileRelationName($gridField);
|
$fieldName = $this->getFileRelationName($gridField);
|
||||||
if ($fieldName) {
|
if ($fieldName) {
|
||||||
|
Loading…
Reference in New Issue
Block a user