Project

General

Profile

Actions

Bug #101351

closed

Backend page title for the edit record view displays HTML instead of filename

Added by David Gurk 10 months ago. Updated 21 days ago.

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

0%

Estimated time:
TYPO3 Version:
11
PHP Version:
8.0
Tags:
Complexity:
Is Regression:
Sprint Focus:
On Location Sprint

Description

The setup

If have custom Extbase records for downloads which reference each a single file and allow to set a translatable download title. If the download title isn't set, the frontend fallbacks to the file name of the referenced file.

This is a slice from the editor mask in the backend:

The same behaviour is defined for the backend via TCA:

return [
    'ctrl' => [
        // ...
        'label' => 'title',
        'label_alt' => 'file',
        // ...
    ],
    // ...
];

For the list of the download records in the backend, this behaviour works as expected and the filename is used as fallback:

The problem

In the record edit view the form title contains HTML:

The expection

I would expect the same behaviour like in the table view. So the title should read:

Edit Download "Einkaufsbedingungen.pdf" on page "Download" 

What to know

  • The edit record title is rendered by public/typo3/sysext/backend/Classes/Form/Container/OuterWrapContainer.php
  • The markup of the unwanted record title is generated by public/typo3/sysext/core/Classes/Resource/Service/UserFileInlineLabelService.php

I'm not sure which place is the right place for fixing this. I hope someone has a better view on this.


Files

be-edit-document-label-fields.png (10.2 KB) be-edit-document-label-fields.png David Gurk, 2023-07-14 09:19
be-list.png (3.41 KB) be-list.png David Gurk, 2023-07-14 09:23
be-edit-document-title.png (19.1 KB) be-edit-document-title.png David Gurk, 2023-07-14 09:24
Actions #1

Updated by Torben Hansen 10 months ago

I analyzed the problem and it is reproducible in TYPO3 11.5 only. Main and v12 does not render the shown HTML nor the filename.

Actions #2

Updated by Annett Jähnichen 9 months ago

  • Sprint Focus set to On Location Sprint
Actions #3

Updated by Tobias Liebig 9 months ago

I'm also not able to reproduce this issue in 13.0.0-dev

Actions #4

Updated by Riccardo De Contardi 21 days ago

  • Status changed from New to Closed

Sorry but I close this issue as it seems it affects only v.11 (which is in "Priority bugfix mode")

If you think that this is the wrong decision or experience the issue on more recent TYPO3 versions like 12 or 13 please open a new issue with a reference to this one.

Thank you and best regards

Actions

Also available in: Atom PDF