[BUGFIX] Support for static table titles in new record wizard 10/28510/4
authorNicole Cordes <typo3@cordes.co>
Tue, 18 Mar 2014 20:01:33 +0000 (21:01 +0100)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Fri, 21 Mar 2014 21:55:47 +0000 (22:55 +0100)
With a static table name the extension key is not updated which sets a
wrong table title for the extension before. This patch resolves table
title from configuration with a fallback to table name part and sets
group name and extension key. This helps to prevent any conflict between
different extensions.

Resolves: #23478
Releases: 6.2
Change-Id: I5f33b0a9ab616256f0b328a6d7c793677213531b
Reviewed-on: https://review.typo3.org/28510
Reviewed-by: Vladimir Podkovanov
Reviewed-by: Wouter Wolters
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
typo3/sysext/backend/Classes/Controller/NewRecordController.php

index fd31404..8c349b9 100644 (file)
@@ -477,11 +477,10 @@ class NewRecordController {
                                                                                        $thisTitle = $EM_CONF[$_EXTKEY]['title'];
                                                                                }
                                                                                $iconFile[$_EXTKEY] = '<img ' . 'src="' . ExtensionManagementUtility::extRelPath($_EXTKEY) . $GLOBALS['TYPO3_LOADED_EXT'][$_EXTKEY]['ext_icon'] . '" ' . 'width="16" height="16" ' . 'alt="' . $thisTitle . '" />';
-                                                                       } else {
-                                                                               $thisTitle = $nameParts[1];
-                                                                               $iconFile[$_EXTKEY] = '';
                                                                        }
-                                                               } else {
+                                                               }
+                                                               if (empty($thisTitle)) {
+                                                                       $_EXTKEY = $nameParts[1];
                                                                        $thisTitle = $nameParts[1];
                                                                        $iconFile[$_EXTKEY] = '';
                                                                }