diff --git a/src/Extension/Traits/FluentObjectTrait.php b/src/Extension/Traits/FluentObjectTrait.php index c674c2cb..93b56aad 100644 --- a/src/Extension/Traits/FluentObjectTrait.php +++ b/src/Extension/Traits/FluentObjectTrait.php @@ -118,8 +118,7 @@ protected function updateFluentCMSFields(FieldList $fields) // Augment Localisation tab with clickable locale links to allow easy navigation between model localisations if ($owner->hasExtension(CMSEditLinkExtension::class)) { - $controller = Controller::has_curr() ? Controller::curr() : null; - $request = $controller?->getRequest(); + $request = Controller::curr()?->getRequest(); // Pass getVars separately so we can process them later $params = $request?->getVars() ?? [];