Project

General

Profile

Bug #81909

Updated by José Ricardo over 7 years ago

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 deleted the news record and then edit the Content Element, an error is thrown: 

 <pre> 
 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 /var/www/html/correio4/siteroot/typo3_src/typo3/sysext/backend/Classes/Form/Element/InputLinkElement.php on line 399 
 </pre> 

 This is the configuration I'm using: 

 <pre> 
 TCEMAIN.linkHandler.tx_news { 
     handler = TYPO3\CMS\Recordlist\LinkHandler\RecordLinkHandler 
     configuration { 
         table = tx_news_domain_model_news 
     } 
     scanBefore = page 
 } 
 </pre> 

 Couldn't find any configuration to avoid this problem, so I guess it's a bug on core. 

 This is the flexform field: 

 <pre> 
 <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> 
 </pre>

Back