MRM-1040 - for snapshots in search results just show SNAPSHOT, not timestamps

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@726930 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
James William Dumay 2008-12-16 02:37:48 +00:00
parent 20080174a4
commit a9efd1383b
1 changed files with 9 additions and 0 deletions

View File

@ -208,6 +208,15 @@ public class SearchAction
totalPages = totalPages + 1;
}
for (SearchResultHit hit : results.getHits())
{
final String version = hit.getVersion();
if (version != null)
{
hit.setVersion(VersionUtil.getBaseVersion(version));
}
}
return SUCCESS;
}