TYPO3 12.4 Backend post delete
jmSirup opened this issue · comments
Got an Error while trying to delete a post in TYPO3 12.4 and t3extblog Version 8.0.0
at Doctrine\DBAL\Connection->convertExceptionDuringQuery(object(Doctrine\DBAL\Driver\Mysqli\Exception\ConnectionError), 'SELECT `uid` FROM `tx_t3blog_com` WHERE ((Array) AND (`tx_t3blog_com`.`deleted` = 0))', array(), array())
When I add a spread operator ... in Classes/Hooks/Tcemain.php
(line 208) to $constraints
then the errror doesn't occour anymore.
$queryBuilder
->select('uid')
->from($tableName)
->where(CompositeExpression::and(...$constraints));
Thanks for contributing! Confirmed and fixed in latest master.