Project

General

Profile

Actions

Bug #59610

closed

Implement multiple checkbox in CheckboxViewhelper

Added by Max Hellwig almost 10 years ago. Updated over 5 years ago.

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

0%

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

Description

To cover the case of multivalue-checkboxes in TYPO3 Core Fluid CheckboxViewhelper I have applied implementation of the FLOW.Fluid CheckboxViewhelper.
I don't know whether it is enough but it looks like all to do is to change the method signature from

public function render($checked = NULL)

to
public function render($checked = NULL, $multiple = NULL)

and remove the @todo annotation in the representing if condition:
elseif (($multiple = FALSE) === TRUE) {
    // @todo: implement correct as in Flow.Fluid
    $nameAttribute .= '[]';
}

to
elseif ($multiple === TRUE) {
    $nameAttribute .= '[]';
}


Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #61529: Cannot ensure checkbox for multiple valuesClosedMathias Brodala2014-09-11

Actions
Actions

Also available in: Atom PDF