|
@@ -29,9 +29,9 @@ discard block |
|
|
block discarded – undo |
|
29
|
29
|
{ |
|
30
|
30
|
$owner = $this->getOwner(); |
|
31
|
31
|
$excludedModelAdmins = Config::inst()->get(ModelAdmin::class, 'excluded_modeladmins_from_ssu_extension'); |
|
32
|
|
- if (! in_array(get_class($owner), $excludedModelAdmins, true)) { |
|
|
32
|
+ if (!in_array(get_class($owner), $excludedModelAdmins, true)) { |
|
33
|
33
|
$excludedModels = Config::inst()->get(ModelAdmin::class, 'excluded_models_from_ssu_extension'); |
|
34
|
|
- if (! in_array($owner->modelClass, $excludedModels, true)) { |
|
|
34
|
+ if (!in_array($owner->modelClass, $excludedModels, true)) { |
|
35
|
35
|
// This check is simply to ensure you are on the managed model you want adjust accordingly |
|
36
|
36
|
$obj = Injector::inst()->get($owner->modelClass); |
|
37
|
37
|
if ($obj) { |
|
@@ -43,7 +43,7 @@ discard block |
|
|
block discarded – undo |
|
43
|
43
|
foreach ($sortFields as $sortField) { |
|
44
|
44
|
if (isset($dbFields[$sortField])) { |
|
45
|
45
|
// This is just a precaution to ensure we got a GridField from dataFieldByName() which you should have |
|
46
|
|
- if (! $config->getComponentByType(GridFieldSortableRows::class)) { |
|
|
46
|
+ if (!$config->getComponentByType(GridFieldSortableRows::class)) { |
|
47
|
47
|
$obj = $owner->modelClass::singleton(); |
|
48
|
48
|
if ($obj->hasExtension(Versioned::class)) { |
|
49
|
49
|
$sorter = (new GridFieldSortableRows($sortField)) |
Please login to merge, or discard this patch.