From 3cc3cadc4eb34b2c3f9067194f0b1519a3a64181 Mon Sep 17 00:00:00 2001 From: Nicolaas Date: Wed, 1 Jul 2020 16:04:16 +1200 Subject: [PATCH] Update CMSEditLinkAPI.php --- src/Api/CMSEditLinkAPI.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Api/CMSEditLinkAPI.php b/src/Api/CMSEditLinkAPI.php index bdd7a11..1fca388 100644 --- a/src/Api/CMSEditLinkAPI.php +++ b/src/Api/CMSEditLinkAPI.php @@ -23,6 +23,7 @@ class CMSEditLinkAPI * { * return CMSEditLinkAPI::find_edit_link_for_object($this, $action); * }; + * returns an empty string if not found! * * @param DataObject|string $objectOrClassName * @param string $action @@ -124,10 +125,7 @@ public static function find_edit_link_for_object($objectOrClassName, $action = n ); } - return Controller::join_links( - Director::baseURL(), - 'admin/not-found' - ); + return ''; } protected static function sanitize_class_name(string $className) : string