Project

General

Profile

Bug #61099 » CheckboxViewHelper.patch

Patch No.2 - Tobias H., 2014-08-21 09:17

View differences:

typo3/sysext/fluid/Classes/ViewHelpers/Form/CheckboxViewHelper.php
}
if (is_array($propertyValue)) {
if ($checked === NULL) {
$checked = in_array($valueAttribute, $propertyValue);
// $checked = in_array($valueAttribute, $propertyValue);
}
foreach ($propertyValue as $value) {
if($valueAttribute == $value->getUid()) {
\TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump($value->getUid());
\TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump($valueAttribute);
$checked = $value->getUid();
}
}
$nameAttribute .= '[]';
} elseif (($multiple = FALSE) === TRUE) {
(2-2/3)