diff --git a/core/backend/ViewDefinitions/LegacyHandler/Subpanel/CreateButtonMapper.php b/core/backend/ViewDefinitions/LegacyHandler/Subpanel/CreateButtonMapper.php index a72c529de..efbca1946 100644 --- a/core/backend/ViewDefinitions/LegacyHandler/Subpanel/CreateButtonMapper.php +++ b/core/backend/ViewDefinitions/LegacyHandler/Subpanel/CreateButtonMapper.php @@ -124,10 +124,6 @@ class CreateButtonMapper implements SubpanelButtonMapperInterface $params['return_relationship'] = $relationshipName; } - if (!empty($relationshipName)) { - $params['return_relationship'] = $relationshipName; - } - if ($relationshipName === 'activities' && $parentModule === 'Contacts') { $params['return_relationship'] = $parentModule; }