Project

General

Profile

Actions

Bug #95733

closed

Form name shows double apostrophe

Added by Xavier Perseguers over 2 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Form Framework
Start date:
2021-10-22
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
Complexity:
easy
Is Regression:
Sprint Focus:
Remote Sprint

Description

With following YAML form definition:

renderingOptions:
  submitButtonLabel: 'Confirmer mon inscription'
type: Form
identifier: registration
label: 'Ouverture d''un compte'
prototypeName: standard

The Backend shows a double apostrophe:


Files

double-apostrophe.png (27.2 KB) double-apostrophe.png Xavier Perseguers, 2021-10-22 11:13
Actions #1

Updated by Guido Schmechel over 2 years ago

The problem is that in typo3/sysext/form/Classes/Mvc/Persistence/FormPersistenceManager.php in the function loadMetaData() the content of the file is read 1:1. The following helped me to get the problem under control:

$yamlFileLoader = GeneralUtility::makeInstance(YamlFileLoader::class);
$yaml = $yamlFileLoader->load(Environment::getPublicPath() . $file->getPublicUrl());

Of course, this had to be included cleanly via dependency injection and also the setting of the path probably needs to be queried better. But with the use of the YamlFileLoader the problem can be solved.

Actions #2

Updated by Georg Ringer over 2 years ago

  • Status changed from New to Accepted
Actions #3

Updated by Björn Jacob about 2 years ago

  • Sprint Focus set to Remote Sprint

Confirmed as well. I have created a new form (via form editor) and named it "Ouverture d''un compte".

Actions #4

Updated by Gerrit Code Review about 2 years ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/73688

Actions #5

Updated by Gerrit Code Review about 2 years ago

Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/73688

Actions #6

Updated by Gerrit Code Review about 2 years ago

Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/73688

Actions #7

Updated by Gerrit Code Review about 2 years ago

Patch set 4 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/73688

Actions #8

Updated by Gerrit Code Review about 2 years ago

Patch set 5 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/73688

Actions #9

Updated by Gerrit Code Review about 2 years ago

Patch set 6 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/73688

Actions #10

Updated by Gerrit Code Review about 2 years ago

Patch set 7 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/73688

Actions #11

Updated by Gerrit Code Review about 2 years ago

Patch set 8 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/73688

Actions #12

Updated by Gerrit Code Review about 2 years ago

Patch set 1 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/73712

Actions #13

Updated by Ralf Zimmermann about 2 years ago

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

Updated by Benni Mack over 1 year ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF