Feature #62436

Checkbox checked when Object has multiple values from a m:n related table

Added by Andreas Sommer over 5 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Fluid
Target version:
Start date:
2014-10-23
Due date:
% Done:

0%

PHP Version:
5.3
Tags:
Complexity:
Sprint Focus:

Description

Hello Dev Team,

the checkboxViewHelper lacks of support set the checkboxes being checked when the formObject has properties referenced through ObjectStorage Instances.

I found the \TYPO3\CMS\Fluid\ViewHelpers\Form\AbstractFormFieldViewHelper::getPropertyValue() being responsible for that.

I included my fix of the function getPropertyValue() as an suggestion inside the attached file.
Works for me, hope this helps to improve Fluid.

Best regards
Andreas

AbstractFormFieldViewHelper_getPropertyValue.php View (3.15 KB) Andreas Sommer, 2014-10-23 23:51

AbstractFormFieldViewHelper_getPropertyValue.php View (3.24 KB) Andreas Sommer, 2014-10-24 00:47


Related issues

Related to TYPO3 Core - Bug #64057: Checkbox viewhelper checked attribute not set for objects Closed 2014-12-30
Related to TYPO3 Core - Bug #61099: CheckboxViewhelper and Objects Closed 2014-08-20

History

#2 Updated by Claus Due over 4 years ago

  • Status changed from New to Resolved

Positive that this one is no longer an issue: ObjectAccess::getPropertyPath is since then fitted with special support for accessing exactly ObjectStorage using numerical indices and AbstractFormFieldViewHelper does passthrough to ObjectAccess::getPropertyPath (see also: #66533). CheckboxViewHelper itself converts iterators to arrays and is able to resolve nested properties using dotted paths (including numerical indices in ObjectStorage). Whichever commit(s) introduced those simply did not include this issue in the list of solved/referenced issues.

If I'm wrong don't hesitate to ask for this to be reopened!

#3 Updated by Benni Mack over 1 year ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF