[TASK] Flash message warning for max number of IRRE items
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Classes / Form / Element / InlineElement.php
index 65a2fed..3d8bc8b 100644 (file)
@@ -300,7 +300,8 @@ class InlineElement {
                if (in_array($config['appearance']['levelLinksPosition'], array('both', 'top'))) {
                        $item .= $levelLinks . $localizationLinks;
                }
                if (in_array($config['appearance']['levelLinksPosition'], array('both', 'top'))) {
                        $item .= $levelLinks . $localizationLinks;
                }
-               $item .= '<div id="' . $nameObject . '_records">';
+               $title = $this->getLanguageService()->sL($PA['fieldConf']['label']);
+               $item .= '<div id="' . $nameObject . '_records" data-title="' . htmlspecialchars($title) . '">';
                $relationList = array();
                if (count($relatedRecords['records'])) {
                        foreach ($relatedRecords['records'] as $rec) {
                $relationList = array();
                if (count($relatedRecords['records'])) {
                        foreach ($relatedRecords['records'] as $rec) {