Bug #102342
closedMissing label functionality in web_list in TYPO2 12
100%
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
Updated by Garvin Hicking about 1 year ago
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.
Updated by Claus Harup about 1 year ago
Hi Garvin
LLL:EXT:core/Resources/Private/Language/locallang_mod_web_list.xlf:newRecordOfType
....does not exist in my TYPO3 v. 12 core?!?!?!
Updated by Andreas Kienast about 1 year ago
- Related to Task #101860: Streamline rendering of action buttons in DatabaseRecordList added
Updated by Gerrit Code Review about 1 year ago
- Status changed from New to Under Review
Patch set 1 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81805
Updated by Andreas Fernandez about 1 year ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 37996d37cd284ed4cbf0dbb52f413aa0079cecfb.