[BUGFIX] Catch UnknownLinkHandlerException in InputLinkElement 06/54506/2
authorGeorg Ringer <georg.ringer@gmail.com>
Tue, 24 Oct 2017 14:37:27 +0000 (16:37 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Mon, 30 Oct 2017 21:08:22 +0000 (22:08 +0100)
Catch another exception to avoid a breaking backend.

Resolves: #82850
Releases: master, 8.7
Change-Id: I349aae21932beb5d45c1cec1b1211d3400d1d969
Reviewed-on: https://review.typo3.org/54506
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/backend/Classes/Form/Element/InputLinkElement.php

index 050d8e4..69cdf61 100644 (file)
@@ -16,6 +16,7 @@ namespace TYPO3\CMS\Backend\Form\Element;
 
 use TYPO3\CMS\Backend\Utility\BackendUtility;
 use TYPO3\CMS\Core\Imaging\Icon;
+use TYPO3\CMS\Core\LinkHandling\Exception\UnknownLinkHandlerException;
 use TYPO3\CMS\Core\LinkHandling\LinkService;
 use TYPO3\CMS\Core\Resource\Exception\FileDoesNotExistException;
 use TYPO3\CMS\Core\Resource\Exception\FolderDoesNotExistException;
@@ -317,6 +318,8 @@ class InputLinkElement extends AbstractFormElement
             return $data;
         } catch (FolderDoesNotExistException $e) {
             return $data;
+        } catch (UnknownLinkHandlerException $e) {
+            return $data;
         }
 
         // Resolving the TypoLink parts (class, title, params)