Bug #95733
closed
Form name shows double apostrophe
Added by Xavier Perseguers about 3 years ago.
Updated about 2 years ago.
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
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.
- Status changed from New to Accepted
- 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".
- Status changed from Accepted to Under Review
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Closed
Also available in: Atom
PDF