From a9821fa7ae96cbd236a9604aeb3644e56bcf33a9 Mon Sep 17 00:00:00 2001 From: Jack Anderson Date: Tue, 12 Sep 2023 14:12:31 +0100 Subject: [PATCH] Fix #332 - Remove duplicate code --- .../LegacyHandler/Subpanel/CreateButtonMapper.php | 4 ---- 1 file changed, 4 deletions(-) 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; }