Skip to content

Commit 0af1427

Browse files
committed
fix show description
1 parent 67d21c6 commit 0af1427

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/cls/ZPM/Package.cls

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -512,11 +512,10 @@ ClassMethod GetLatest(searchTerms As %DynamicArray = "", Output pStatus As %Stat
512512
}
513513
Set searchCondition = searchCondition_ " ) "
514514
}
515-
set sql = "SELECT name, repository, description, "_
516-
" ( SELECT TOP 1 version FROM ZPM.Package p2 WHERE p1.name=p2.name ORDER BY versionMajor DESC, versionMinor DESC, versionPatch DESC, versionPrerelease DESC, versionBuildmetadata DESC ) version " _
515+
set sql = "SELECT name, repository, description, version "_
517516
" FROM ZPM.Package p1 "_
518-
" WHERE "_searchCondition_" "_
519-
" GROUP BY name ORDER BY name"
517+
" WHERE "_searchCondition_" "_
518+
" AND p1.version = ( SELECT TOP 1 version FROM ZPM.Package p2 WHERE p1.name=p2.name ORDER BY versionMajor DESC, versionMinor DESC, versionPatch DESC, versionPrerelease DESC, versionBuildmetadata DESC ) "
520519

521520
Set tStatement = ##class(%SQL.Statement).%New()
522521
Set tStatus = tStatement.%Prepare(sql)

0 commit comments

Comments
 (0)