From 1a8152843a3700fca140e0dd48a17fa46721e049 Mon Sep 17 00:00:00 2001 From: Thomas Dirscherl Date: Wed, 26 Mar 2025 09:57:35 +0100 Subject: [PATCH] Fix workspace sub-query to include table name of column references --- src/Controller/AdminController.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/Controller/AdminController.php b/src/Controller/AdminController.php index 8149440..bc132da 100644 --- a/src/Controller/AdminController.php +++ b/src/Controller/AdminController.php @@ -126,9 +126,12 @@ public function gridProxyAction(Request $request, Service $service, EventDispatc $list->setObjectTypes(['object', 'folder', 'variant']); $conditionFilters = []; - $idField = 'id'; - $keyColumn = 'key'; - $pathColumn = 'path'; + + // this is necessary to properly reference the columns from the main query in the workspaces related sub-query + $listingTableName = $list->getDao()->getTableName(); + $idField = $listingTableName . '.' . 'id'; + $keyColumn = $listingTableName . '.' . 'key'; + $pathColumn = $listingTableName . '.' . 'path'; if (!$this->getPimcoreUser()->isAdmin()) { $userIds = $this->getPimcoreUser()->getRoles(); $userIds[] = $this->getPimcoreUser()->getId();