Project

General

Profile

Actions

Bug #89529

closed

EXT:form: value in singleselect contains dot/period AT END - rendering fails

Added by Ingo Müller over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Form Framework
Target version:
-
Start date:
2019-10-28
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
8
PHP Version:
7.0
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Hi there seems similar to those and therefor should be fixed in 8.7 already:
https://forge.typo3.org/projects/typo3cms-core/repository/revisions/b4b32de503ef0eb4df520dc0cf41f0fd84376bb3

But perhaps it was not tested if the period/dot is at the end of the value.

Form building is possible in the backend gui but rendering in frontend fails with:

frontend error:
Oops, an error occurred!
Argument 1 passed to TYPO3\CMS\Form\Mvc\Configuration\TypoScriptService::resolveTypoScriptConfiguration() must be of the type array, string given, called in /var/www/xxxx/vendor/typo3/cms/typo3/sysext/form/Classes/Mvc/Configuration/TypoScriptService.php on line 85

backend log:
Core: Exception handler (WEB): Uncaught TYPO3 Exception: Argument 1 passed to TYPO3\CMS\Form\Mvc\Configuration\TypoScriptService::resolveTypoScriptConfiguration() must be of the type array, string given, called in /var/www/xxxx/vendor/typo3/cms/typo3/sysext/form/Classes/Mvc/Configuration/TypoScriptService.php on line 85 | TypeError thrown in file /var/www/xxxx/vendor/typo3/cms/typo3/sysext/form/Classes/Mvc/Configuration/TypoScriptService.php in line 74. Requested URL: https://www.xxx/x/anmeldeformular/?no_cache=1

FAILS:

label         value
Prof. Dr.     Prof. Dr.

WORKS if last period is left out:

label         value
Prof. Dr.     Prof. Dr

T3 v8.7.28 on php 7.0 and 7.3


Files

Actions #1

Updated by Susanne Moog over 4 years ago

  • Sprint Focus set to Remote Sprint
Actions #2

Updated by Mathias Brodala over 4 years ago

I am unable to reproduce the issue with the latest master using the following form definition:


renderingOptions:
  submitButtonLabel: Submit
type: Form
identifier: forge89529SelectOptionsWithDotinValue
label: 'Forge 89529: Select Options With Dot in Value'
prototypeName: standard
renderables:
  -
    renderingOptions:
      previousButtonLabel: 'Previous step'
      nextButtonLabel: 'Next step'
    type: Page
    identifier: page-1
    label: Step
    renderables:
      -
        properties:
          options:
            'Prof. Dr.': 'Prof. Dr.'
        type: SingleSelect
        identifier: singleselect-1
        label: 'Single select'

The form field renders just fine in the frontend:

Can you also check with the latest master and attach your form definition if necessary?

Actions #3

Updated by Björn Jacob over 4 years ago

  • Sprint Focus deleted (Remote Sprint)
Actions #4

Updated by Ingo Müller over 4 years ago

I'm very sorry but I can't reproduce it on T3 v8.7.29 - so see it as fixed

Actions #5

Updated by Björn Jacob over 4 years ago

  • Status changed from Needs Feedback to Closed

Thank you for your feedback. Closing this issue.

Actions

Also available in: Atom PDF