Bug #83477
closedForm finisher parseOption fails with MultiCheckbox / MultiSelect
100%
Description
I have a form with a field called "newsletter", which enables you to select 1 or more newsletters using a MultiCheckbox.
However, when you use parseOption on this field the values - that are actually correcty retrieved in $value before the if-statement below is executed - are discarded because $value is only allowed as a string or numeric value:
Line 208:
if (!is_string($value) && !is_numeric($value)) {
$value = '{' . $match[1] . '}';
}
I would expect that it would be returning an array of parsed options instead of '{newsletter}'.
Files
Updated by Gerrit Code Review almost 7 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/55820
Updated by Gerrit Code Review almost 7 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/55820
Updated by Gerrit Code Review almost 7 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/55820
Updated by Gerrit Code Review almost 7 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/55820
Updated by Oliver Hader almost 7 years ago
Ronald: Can you please provide the @options
YAML configuration of the finisher you're using? Thanks in advance!
I'm currently trying to understand, whether $optionValue
is an array in this scenario or the result of retrieving form state data with ObjectAccess::getPropertyPath
is the issue here.
Updated by Gerrit Code Review over 6 years ago
Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/55820
Updated by Gerrit Code Review over 6 years ago
Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/55820
Updated by Gerrit Code Review over 6 years ago
Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/55820
Updated by Gerrit Code Review over 6 years ago
Patch set 8 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/55820
Updated by Gerrit Code Review over 6 years ago
Patch set 9 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/55820
Updated by Gerrit Code Review over 6 years ago
Patch set 10 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/55820
Updated by Gerrit Code Review over 6 years ago
Patch set 11 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/55820
Updated by Gerrit Code Review over 6 years ago
Patch set 12 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/55820
Updated by Gerrit Code Review over 6 years ago
Patch set 13 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/55820
Updated by Gerrit Code Review over 6 years ago
Patch set 14 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/55820
Updated by Ronald Kools over 6 years ago
Oliver Hader wrote:
Ronald: Can you please provide the @options
YAML configuration of the finisher you're using? Thanks in advance!I'm currently trying to understand, whether
$optionValue
is an array in this scenario or the result of retrieving form state data withObjectAccess::getPropertyPath
is the issue here.
Oliver, sorry for my slow reply, I only just noticed your request. As it is already patched, do you still need it?
Updated by Björn Jacob over 6 years ago
- Assignee set to Ronald Kools
- Priority changed from -- undefined -- to Must have
The patch has not been merged yet. It is still under review. Please provide your YAML. That would be grand.
Updated by Ronald Kools over 6 years ago
- File newsletter.yaml newsletter.yaml added
- File newsletter.jpg newsletter.jpg added
Bjoern Jacob wrote:
The patch has not been merged yet. It is still under review. Please provide your YAML. That would be grand.
Done!
I attached both a screenshot from the backend and the yaml. If you need anything else please let me know. ;-)
Updated by Gerrit Code Review over 6 years ago
Patch set 15 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/55820
Updated by Gerrit Code Review over 6 years ago
Patch set 16 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/55820
Updated by Gerrit Code Review over 6 years ago
Patch set 17 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/55820
Updated by Gerrit Code Review over 6 years ago
Patch set 18 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/55820
Updated by Oliver Hader over 6 years ago
- Related to Bug #84698: Severity for ext:form was not accepted added
Updated by Gerrit Code Review over 6 years ago
Patch set 19 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/55820
Updated by Gerrit Code Review over 6 years ago
Patch set 20 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/55820
Updated by Gerrit Code Review over 6 years ago
Patch set 21 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/55820
Updated by Gerrit Code Review over 6 years ago
Patch set 22 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/55820
Updated by Ralf Zimmermann over 6 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 819a118f763f4281a4c52a9bfd80b85fb4219768.
Updated by Gerrit Code Review over 6 years ago
- Status changed from Resolved to Under Review
Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/56722
Updated by Ralf Zimmermann over 6 years ago
- Status changed from Under Review to Resolved
Applied in changeset 5fe2a684e1e8fa0787854b335e0cf3443bad8e2d.