#51067Adjust usage of ContentObjectRenderer->getTreeList()
Description
In typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer->getQuery() the pid where clause is build using getTreeList() to fetch recursive pids. But for the inclusion of the uppermost pid, string concatenation is used. The method getTreeList() offers the option to include the uppermost pid into the returned result by passing it as a negative value. Method getQuery() should use this opportunity instead of doing its own magic.