Project

General

Profile

Actions

Feature #62436

closed

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

Added by Andreas Sommer about 10 years ago. Updated about 6 years ago.

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

0%

Estimated time:
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


Files


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #64057: Checkbox viewhelper checked attribute not set for objectsClosedMathias Brodala2014-12-30

Actions
Related to TYPO3 Core - Bug #61099: CheckboxViewhelper and ObjectsClosed2014-08-20

Actions
Actions #2

Updated by Claus Due about 9 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!

Actions #3

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF