#81909Error when editing a content which contains a link to a deleted record
Description
Hi,
On TYPO3 8.7.3, when you create a record (tx_news for example), create a link using LinkHandler on a Content Element, delete the news record and then edit the Content Element, an error is thrown:
Argument 2 passed to TYPO3\CMS\Core\Imaging\IconFactory::getIconForRecord() must be of the type array, null given, called in .../typo3_src/typo3/sysext/backend/Classes/Form/Element/InputLinkElement.php on line 399
This is the configuration I’m using:
TCEMAIN.linkHandler.tx_news {
handler = TYPO3\CMS\Recordlist\LinkHandler\RecordLinkHandler
configuration {
table = tx_news_domain_model_news
}
scanBefore = page
}
Couldn’t find any configuration to avoid this problem, so I guess it’s a bug on core.
This is the flexform field:
<link>
<TCEforms>
<label>Link</label>
<config>
<type>input</type>
<eval>trim</eval>
<wizards type="array">
<link type="array">
<type>popup</type>
<title>LLL:EXT:cms/locallang_ttc.xlf:header_link_formlabel</title>
<icon>link_popup.gif</icon>
<module type="array">
<name>wizard_element_browser</name>
<urlParameters type="array">
<mode>wizard</mode>
</urlParameters>
</module>
<JSopenParams>height=500,width=600,status=0,menubar=0,scrollbars=1</JSopenParams>
</link>
</wizards>
</config>
</TCEforms>
</link>Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.