diff --git a/src/Api/Controller/RebuildParentIdsController.php b/src/Api/Controller/RebuildParentIdsController.php index d69ea7f..9f99bf4 100644 --- a/src/Api/Controller/RebuildParentIdsController.php +++ b/src/Api/Controller/RebuildParentIdsController.php @@ -83,6 +83,9 @@ public function handle(ServerRequestInterface $request): ResponseInterface // --- PART 3: Update child and descendant counts --- // Update child counts + // get prefix an concat with $tableName + $prefix = $db->getTablePrefix(); + $tableName = $prefix . $tableName; $db->statement(" UPDATE {$tableName} t1 INNER JOIN (