#102342Missing label functionality in web_list in TYPO2 12
Description
TYPO3 v.11:
clipboard-202311071526-14fya.png
TYPO3 v.12:
clipboard-202311071527-azgfw.png
\TYPO3\CMS\Backend\RecordList\DatabaseRecordList::createActionButtonNewRecord
$label = sprintf(
$this->getLanguageService()->sL('LLL:EXT:core/Resources/Private/Language/locallang_mod_web_list.xlf:newRecordOfType'),
$this->getLanguageService()->sL($GLOBALS['TCA'][$table]['ctrl']['title'])
);
newRecordOfType does not exist anymore...Reviews 1
Related issues 1
Files 2
History 56
-
Garvin Hicking commented 11/07/23, 15:46
-
Claus Harup commented 11/08/23, 08:05
Hi Garvin
LLL:EXT:core/Resources/Private/Language/locallang_mod_web_list.xlf:newRecordOfType….does not exist in my TYPO3 v. 12 core?!??
-
Andreas Kienast changed Related to #101860 11/20/23, 16:13
-
Gerrit Code Review pushed patch set 1 for 12.4 to change 81805 status
NewUnder Review 11/20/23, 16:16 -
Andreas Fernandez commented and changed status
Under ReviewResolved done0 %100 % 11/20/23, 16:30Applied in changeset commit:37996d37cd284ed4cbf0dbb52f413aa0079cecfb.
-
Benni Mack changed status
ResolvedClosed 07/09/24, 15:19
This is very odd. I could reproduce only seing “+” in my button. Then I started to debug, and found out that actually the XLF file exists, and the string is there.
I simply added a $label .= ‘!!’ in the
DatabaseRecordList.php, and then suddenly both “New Website User!!” appeared.I removed my custom string, and now still “New Website User” appears. No matter how often I purge the cache.
Now I can’t reproduce not seing the icon label any more
.I wonder if the
getLanguageServiceoption can get into a state where it returns an empty label from some kind of caching method. But I also purged my opcache, restarted the ddev container. Stumped.