Removed obsolete Config::INHERITED constant for SS4 (#140)

inherited behaviour is now default in SS4
This commit is contained in:
Philipp Staender 2017-05-28 19:58:12 +02:00 committed by Thierry François
parent 182109d890
commit 5d8a1c3abd

View File

@ -249,7 +249,7 @@ class BulkUploader implements GridField_HTMLProvider, GridField_URLHandler
public function getDefaultFileRelationName($gridField)
{
$recordClass = $this->getRecordClassName($gridField);
$hasOneFields = Config::inst()->get($recordClass, 'has_one', Config::INHERITED);
$hasOneFields = Config::inst()->get($recordClass, 'has_one');
$imageField = null;
foreach ($hasOneFields as $field => $type) {
@ -290,7 +290,7 @@ class BulkUploader implements GridField_HTMLProvider, GridField_URLHandler
public function getFileRelationClassName($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);
if ($fieldName) {