Skip to content

Commit

Permalink
Merge pull request #65 from intersystems-community/stage
Browse files Browse the repository at this point in the history
fix show description
  • Loading branch information
nsolov authored May 11, 2021
2 parents 67d21c6 + fa7872b commit d96a3a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<Module>
<Name>zpm-registry</Name>
<Description>Registry server for ZPM</Description>
<Version>1.1.3</Version>
<Version>1.1.4</Version>
<Packaging>module</Packaging>
<Dependencies>
<ModuleReference>
Expand Down
7 changes: 3 additions & 4 deletions src/cls/ZPM/Package.cls
Original file line number Diff line number Diff line change
Expand Up @@ -512,11 +512,10 @@ ClassMethod GetLatest(searchTerms As %DynamicArray = "", Output pStatus As %Stat
}
Set searchCondition = searchCondition_ " ) "
}
set sql = "SELECT name, repository, description, "_
" ( 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 " _
set sql = "SELECT name, repository, description, version "_
" FROM ZPM.Package p1 "_
" WHERE "_searchCondition_" "_
" GROUP BY name ORDER BY name"
" WHERE "_searchCondition_" "_
" 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 ) "

Set tStatement = ##class(%SQL.Statement).%New()
Set tStatus = tStatement.%Prepare(sql)
Expand Down

0 comments on commit d96a3a9

Please sign in to comment.