Skip to content

Commit e57ba4c

Browse files
authored
Merge pull request #426 from Stewy82/Stewy82-fix-typecasting
[BUGFIX] Fix type cast bug happens when moving content elements of nested containers
2 parents d8c643d + 5574b38 commit e57ba4c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Classes/Hooks/Datahandler/CommandMapBeforeStartHook.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ protected function unsetInconsistentCopyOrMoveCommands(DataHandler $dataHandler)
8787
break;
8888
}
8989
$record = $this->database->fetchOneRecord($targetContainerId);
90-
$targetContainerId = $record['tx_container_parent'] ?? 0;
90+
$targetContainerId = (int)($record['tx_container_parent'] ?? 0);
9191
}
9292
}
9393

0 commit comments

Comments
 (0)