Project

General

Profile

Actions

Bug #61099

closed

CheckboxViewhelper and Objects

Added by Tobias H. over 9 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Fluid
Target version:
-
Start date:
2014-08-20
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

Hi there,

i have a filter object for a fluid form. In there i have objects i would like to use with checkboxes:

            <f:for each="{colors}" as="color" >
                <label for="size">{color.name}</label>
                 <f:form.checkbox property="colors" value="{color.uid}"/>
            </f:for>

This will only work with the attached patch to the CheckboxViewhelper.php in Fluid. Without the checkboxes are not correctly checked again. The objects are all correct in my filter model. The following code with the same model is working:

<f:form.select property="colors" options="{colors}" optionLabelField="name" multiple="1" />

What is wrong? Can someone help me? I found this workaround: http://www.muenster-webdesign.net/blog/typo3-mit-fluid-und-dem-checkbox-viewhelper-mehrere-objekte-einer-klasse-erzeugen/

But i think the Viewhelper can handle objects, why not in my case?

Best Regards,
tobias


Files

CheckboxViewHelper.patch (708 Bytes) CheckboxViewHelper.patch Patch Tobias H., 2014-08-20 16:13
CheckboxViewHelper.patch (921 Bytes) CheckboxViewHelper.patch Patch No.2 Tobias H., 2014-08-21 09:17
CheckboxViewHelper.patch (764 Bytes) CheckboxViewHelper.patch Patch without debug Tobias H., 2014-08-21 09:20

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 - Feature #62436: Checkbox checked when Object has multiple values from a m:n related tableClosed2014-10-23

Actions
Actions

Also available in: Atom PDF