Skip to content

Commit

Permalink
Fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
mfendeksilverstripe committed Apr 4, 2024
1 parent cc246cf commit 863321a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Extension/Traits/FluentObjectTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ public function augmentDataQueryCreation(
*/
protected function updateFluentCMSFields(FieldList $fields)
{
if (!$this->owner->ID) {
$owner = $this->owner;

if (!$owner->ID) {
return;
}

Expand Down Expand Up @@ -150,11 +152,11 @@ protected function updateFluentCMSFields(FieldList $fields)
}

// Let extensions override columns
$this->owner->extend('updateLocalisationTabColumns', $summaryColumns);
$owner->extend('updateLocalisationTabColumns', $summaryColumns);
$columns->setDisplayFields($summaryColumns);

// Let extensions override components
$this->owner->extend('updateLocalisationTabConfig', $config);
$owner->extend('updateLocalisationTabConfig', $config);

// Add gridfield to tab / fields
$gridField = GridField::create(
Expand Down

0 comments on commit 863321a

Please sign in to comment.