fix artifact description not returned

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1301278 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-03-15 23:52:34 +00:00
parent 38bc3000f4
commit f00878ddf9
1 changed files with 3 additions and 2 deletions

View File

@ -207,7 +207,6 @@ public class DefaultBrowseService
Collections.sort( sortedVersions, VersionComparator.getInstance() );
return sortedVersions;
}
finally
@ -300,7 +299,9 @@ public class DefaultBrowseService
if ( sharedModel.getDescription() != null && !StringUtils.equalsIgnoreCase(
sharedModel.getDescription(), versionMetadata.getDescription() ) )
{
sharedModel.setDescription( null );
sharedModel.setDescription( StringUtils.isNotEmpty( versionMetadata.getDescription() )
? versionMetadata.getDescription()
: "" );
}
if ( sharedModel.getIssueManagement() != null && versionMetadata.getIssueManagement() != null