Issue Bug Closed

#61099CheckboxViewhelper and Objects

Tobias H. 08/20/14, 16:11 updated 10/02/18, 11:52

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

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.