* [bug#67854] Fix Integrity constraint violatioin: 1052 Column 'id' in ORDER BY is ambiguous.

This commit is contained in:
liugang
2025-12-10 10:17:34 +08:00
parent e7cf9bd71a
commit 44552a77d9
+1
View File
@@ -542,6 +542,7 @@ class storyTao extends storyModel
protected function fetchProjectStories(dao $storyDAO, int $productID, string $type, string $branch, array $executionStoryIdList, string $orderBy, ?object $pager = null, ?object $project = null): array
{
if(strpos($orderBy, 'version_') !== false) $orderBy = str_replace('version_', 't2.version_', $orderBy);
if(strpos($orderBy, 'id_') !== false) $orderBy = str_replace('id_', 't2.id_', $orderBy);
$unclosedStatus = $this->getUnclosedStatusKeys();
$assignProduct = false;