From 5393809ef688d209a7d7cf1b189c255ab7e8b55e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20R?= Date: Sat, 18 Nov 2017 14:58:34 +0100 Subject: [PATCH] EZP-28176: Fix SQL error on indexing with --subtree argument (#2152) --- eZ/Bundle/EzPublishCoreBundle/Command/ReindexCommand.php | 1 - 1 file changed, 1 deletion(-) diff --git a/eZ/Bundle/EzPublishCoreBundle/Command/ReindexCommand.php b/eZ/Bundle/EzPublishCoreBundle/Command/ReindexCommand.php index da8df32f898..29775f8dd35 100644 --- a/eZ/Bundle/EzPublishCoreBundle/Command/ReindexCommand.php +++ b/eZ/Bundle/EzPublishCoreBundle/Command/ReindexCommand.php @@ -300,7 +300,6 @@ private function getStatementSubtree($locationId, $count = false) ->innerJoin('c', 'ezcontentobject_tree', 't', 't.contentobject_id = c.id') ->where('c.status = :status') ->andWhere('t.path_string LIKE :path') - ->orderBy('t.path_string') ->setParameter('status', ContentInfo::STATUS_PUBLISHED, PDO::PARAM_INT) ->setParameter('path', $location->pathString . '%', PDO::PARAM_STR);