Skip to content

Commit 985aa1c

Browse files
dramenevDmitry Ramenev
andauthored
Fix "The Request object has not been set" exception (#8305)
Co-authored-by: Dmitry Ramenev <[email protected]>
1 parent f20f85c commit 985aa1c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Admin/AbstractAdmin.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2267,6 +2267,10 @@ protected function configureDefaultSortValues(array &$sortValues): void
22672267
*/
22682268
final protected function appendParentObject(object $object): void
22692269
{
2270+
if (!$this->hasRequest()) {
2271+
return;
2272+
}
2273+
22702274
if ($this->isChild()) {
22712275
$parentAssociationMapping = $this->getParentAssociationMapping();
22722276

0 commit comments

Comments
 (0)