[BUGFIX] FormEngine: Show correct error message (render)Type is unknown 42/53142/2
authorMarkus Klein <markus.klein@typo3.org>
Tue, 6 Jun 2017 14:40:45 +0000 (16:40 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Tue, 6 Jun 2017 18:28:04 +0000 (20:28 +0200)
Issue correct error message if the renderType (or the type) is unknown.
The message now includes also the renderType, if specified.

Releases: master, 8.7, 7.6
Resolves: #81485
Change-Id: I44e736a546fc27733a8c8df14089dd25dc172f2b
Reviewed-on: https://review.typo3.org/53142
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/backend/Classes/Form/Element/UnknownElement.php

index 69e6354..3f53ff7 100644 (file)
@@ -27,8 +27,9 @@ class UnknownElement extends AbstractFormElement
     public function render()
     {
         $type = $this->data['parameterArray']['fieldConf']['config']['type'];
+        $renderType = $this->data['renderType'];
         $resultArray = $this->initializeResultArray();
-        $resultArray['html'] = 'Unknown type: ' . $type . '<br />';
+        $resultArray['html'] = 'Unknown type: ' . $type . ($renderType ? ', render type: ' . $renderType : '') . '<br />';
         return $resultArray;
     }
 }