Issue Bug Closed

#102342Missing label functionality in web_list in TYPO2 12

Claus Harup 11/07/23, 14:37 updated 07/09/24, 15:19

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

Files 2

History 56

  1. Garvin Hicking commented 11/07/23, 15:46

    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.

  2. 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?!??

  3. Andreas Kienast changed Related to #101860 11/20/23, 16:13

  4. Gerrit Code Review pushed patch set 1 for 12.4 to change 81805 status New Under Review 11/20/23, 16:16

  5. Andreas Fernandez commented and changed status Under Review Resolved done 0 % 100 % 11/20/23, 16:30

    Applied in changeset commit:37996d37cd284ed4cbf0dbb52f413aa0079cecfb.

  6. Benni Mack changed status Resolved Closed 07/09/24, 15:19