From 58bdac63de609d2cbe449b6f3e749c5984080672 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Thu, 15 Aug 2024 16:23:17 +1200 Subject: [PATCH] ENH Remove unnecessary condition --- src/Admin/AdvancedWorkflowAdmin.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Admin/AdvancedWorkflowAdmin.php b/src/Admin/AdvancedWorkflowAdmin.php index d24cb41b..ac8e7f44 100644 --- a/src/Admin/AdvancedWorkflowAdmin.php +++ b/src/Admin/AdvancedWorkflowAdmin.php @@ -286,9 +286,7 @@ public function userObjects(Member $user, $fieldName) // Title property.. $instance->setField('Title', $target->getField('Title')); $instance->setField('LastEdited', $target->getField('LastEdited')); - if (method_exists($target, 'CMSEditLink')) { - $instance->setField('ObjectRecordLink', $target->CMSEditLink()); - } + $instance->setField('ObjectRecordLink', $target->CMSEditLink()); $list->push($instance); }