mirror of https://github.com/apache/archiva.git
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:
parent
20080174a4
commit
a9efd1383b
|
@ -208,6 +208,15 @@ public class SearchAction
|
||||||
totalPages = totalPages + 1;
|
totalPages = totalPages + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (SearchResultHit hit : results.getHits())
|
||||||
|
{
|
||||||
|
final String version = hit.getVersion();
|
||||||
|
if (version != null)
|
||||||
|
{
|
||||||
|
hit.setVersion(VersionUtil.getBaseVersion(version));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return SUCCESS;
|
return SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue