Project

General

Profile

Actions

Bug #102342

closed

Missing label functionality in web_list in TYPO2 12

Added by Claus Harup 6 months ago. Updated 5 months ago.

Status:
Resolved
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Target version:
Start date:
2023-11-07
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
12
PHP Version:
8.2
Tags:
Complexity:
no-brainer
Is Regression:
Sprint Focus:

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


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #101860: Streamline rendering of action buttons in DatabaseRecordListClosed2023-09-06

Actions
Actions #1

Updated by Garvin Hicking 6 months 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.

Actions #2

Updated by Claus Harup 6 months ago

Hi Garvin

LLL:EXT:core/Resources/Private/Language/locallang_mod_web_list.xlf:newRecordOfType

....does not exist in my TYPO3 v. 12 core?!?!?!

Actions #3

Updated by Andreas Kienast 5 months ago

  • Related to Task #101860: Streamline rendering of action buttons in DatabaseRecordList added
Actions #4

Updated by Gerrit Code Review 5 months 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

Actions #5

Updated by Andreas Fernandez 5 months ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF