Commit d315fb23 authored by Andreas Fernandez's avatar Andreas Fernandez Committed by Andreas Fernandez
Browse files

[BUGFIX] Create multiple pages: cast bool values to int

Resolves: #82403
Related: #81768
Releases: master
Change-Id: Id6610c9f7fbc445c142c999bb41c7b7c6eb83729
Reviewed-on: https://review.typo3.org/54054

Reviewed-by: Benjamin Kott's avatarBenjamin Kott <benjamin.kott@outlook.com>
Tested-by: Benjamin Kott's avatarBenjamin Kott <benjamin.kott@outlook.com>
Reviewed-by: default avatarStefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: default avatarStefan Neufeind <typo3.neufeind@speedpartner.de>
Reviewed-by: Andreas Fernandez's avatarAndreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez's avatarAndreas Fernandez <typo3@scripting-base.de>
parent e11bf1a8
......@@ -165,8 +165,8 @@ class NewMultiplePagesController
if (!trim($data['title'])) {
continue;
}
$commandArray['pages'][$identifier]['hidden'] = $hidePages;
$commandArray['pages'][$identifier]['nav_hide'] = $hidePagesInMenu;
$commandArray['pages'][$identifier]['hidden'] = (int)$hidePages;
$commandArray['pages'][$identifier]['nav_hide'] = (int)$hidePagesInMenu;
$commandArray['pages'][$identifier]['title'] = $data['title'];
$commandArray['pages'][$identifier]['doktype'] = $data['doktype'];
if ($firstRecord) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment