Bug #102342
closed
Missing label functionality in web_list in TYPO2 12
Added by Claus Harup about 1 year ago.
Updated 4 months ago.
Category:
Backend User Interface
Description
TYPO3 v.11:¶
TYPO3 v.12:
¶
\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...
Files
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 getLanguageService
option 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.
Hi Garvin
LLL:EXT:core/Resources/Private/Language/locallang_mod_web_list.xlf:newRecordOfType
....does not exist in my TYPO3 v. 12 core?!?!?!
- Related to Task #101860: Streamline rendering of action buttons in DatabaseRecordList added
- Status changed from New to Under Review
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Closed
Also available in: Atom
PDF