Skip to content

Commit

Permalink
ENH Remove unnecessary condition
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Aug 15, 2024
1 parent eed4dbb commit 58bdac6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Admin/AdvancedWorkflowAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 58bdac6

Please sign in to comment.