Actions
Bug #65965
closedWrong $paramsList in FormEngine->getSingleField_typeInput
Status:
Closed
Priority:
Must have
Assignee:
Category:
Backend API
Target version:
Start date:
2015-03-24
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
no-brainer
Is Regression:
No
Sprint Focus:
Description
Found a bug in line 1537 in method getSingleField_typeInput in class FormEngine:
Is:
$paramsList = '\'' . $PA['itemFormElName'] . '\',\'' . implode(',', $evalList) . '\',\'' . trim($config['is_in']) . '\',' . (isset($config['checkbox']) ? 1 : 0) . ',\'' . $config['checkbox'] . '\'';
Must be:
$paramsList = '\'' . $PA['itemFormElName'] . '\',\'' . implode(',', $evalList) . '\',\'' . trim($config['is_in']) . '\',' . ($checkboxIsset ? 1 : 0) . ',\'' . $config['checkbox'] . '\'';
If $config['checkbox'] is not set it gets set in line 1449ff.
if (!isset($config['checkbox'])) { $config['checkbox'] = '0'; $checkboxIsset = FALSE; } else { $checkboxIsset = TRUE; }
So isset($config['checkbox'] is always true.
This causes the forth paramter of the JS method fieldGet to be always 1 and there is no possibility to allow the value 0 in an textfield that evaluates to an integer value.
Actions