Bug #92381

Updated by Christian Buelter over 1 year ago

When a "maxitems" TCA configuration is set for inline elements, the "Create new" button disappears after reaching the maxitems limit, but the button does not re-appear if one element is deleted.  

 The button will re-appear after saving the record. 

 If there's also a value configured for "minitems" and "minitems" = "maxitems", "minitems", it's not possible to save the record. Therefore it is not possible to remove the inline element at all, meaning it is not possible all if you want to remove one and add another element. 

 *Expected behaviour* 

 After reaching the limit of inline elements configured in "maxitems" and removing one element, the "Create new" button should re-appear. 

 Tested in TYPO3 10.4.6 and news 8.4.0 

 *Steps to reproduce (using EXT:news as an example)* 

 1. Install EXT:news 

 2. Set the following PageTS 

 TCEFORM.tx_news_domain_model_news.related_links.config.minitems = 1 
 TCEFORM.tx_news_domain_model_news.related_links.config.maxitems = 1 

 3. Add a news element. Add a "related link" element inside the news element using the "Create new" button. The "Create new" button disappears. Remove the "related link" element. The "Create new" button still is gone.