Skip to content

Commit

Permalink
[BUGFIX] Prevent TypeError in DatabaseIntegrityController
Browse files Browse the repository at this point in the history
Apply type cast to the input value to prevent a TypeError.

Resolves: #101555
Releases: main, 12.4
Change-Id: If2db6d0cc793999f2ce93d16cfedadb12325c316
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/80231
Tested-by: Oliver Bartsch <bo@cedev.de>
Reviewed-by: Oliver Bartsch <bo@cedev.de>
Tested-by: core-ci <typo3@b13.com>
  • Loading branch information
o-ba committed Aug 3, 2023
1 parent 9324ba9 commit f854477
Showing 1 changed file with 6 additions and 6 deletions.
Expand Up @@ -1613,10 +1613,10 @@ protected function getFormElements(int $subLevel = 0, $queryConfig = '', string
$lineHTML[] = $this->makeComparisonSelector($subscript, $fieldName, $conf);
if ($conf['comparison'] === 100 || $conf['comparison'] === 101) {
// between
$lineHTML[] = $this->getDateTimePickerField($fieldPrefix . '[inputValue]', $conf['inputValue'], 'date');
$lineHTML[] = $this->getDateTimePickerField($fieldPrefix . '[inputValue1]', $conf['inputValue1'], 'date');
$lineHTML[] = $this->getDateTimePickerField($fieldPrefix . '[inputValue]', (string)$conf['inputValue'], 'date');
$lineHTML[] = $this->getDateTimePickerField($fieldPrefix . '[inputValue1]', (string)$conf['inputValue1'], 'date');
} else {
$lineHTML[] = $this->getDateTimePickerField($fieldPrefix . '[inputValue]', $conf['inputValue'], 'date');
$lineHTML[] = $this->getDateTimePickerField($fieldPrefix . '[inputValue]', (string)$conf['inputValue'], 'date');
}
$lineHTML[] = '</div>';
break;
Expand All @@ -1625,10 +1625,10 @@ protected function getFormElements(int $subLevel = 0, $queryConfig = '', string
$lineHTML[] = $this->makeComparisonSelector($subscript, $fieldName, $conf);
if ($conf['comparison'] === 100 || $conf['comparison'] === 101) {
// between:
$lineHTML[] = $this->getDateTimePickerField($fieldPrefix . '[inputValue]', $conf['inputValue'], 'datetime');
$lineHTML[] = $this->getDateTimePickerField($fieldPrefix . '[inputValue1]', $conf['inputValue1'], 'datetime');
$lineHTML[] = $this->getDateTimePickerField($fieldPrefix . '[inputValue]', (string)$conf['inputValue'], 'datetime');
$lineHTML[] = $this->getDateTimePickerField($fieldPrefix . '[inputValue1]', (string)$conf['inputValue1'], 'datetime');
} else {
$lineHTML[] = $this->getDateTimePickerField($fieldPrefix . '[inputValue]', $conf['inputValue'], 'datetime');
$lineHTML[] = $this->getDateTimePickerField($fieldPrefix . '[inputValue]', (string)$conf['inputValue'], 'datetime');
}
$lineHTML[] = '</div>';
break;
Expand Down

0 comments on commit f854477

Please sign in to comment.