mirror of https://github.com/apache/archiva.git
use name when available
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1302388 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1ed7ec351e
commit
316db51e0a
|
@ -418,10 +418,10 @@ public class DefaultBrowseService
|
|||
}
|
||||
}
|
||||
|
||||
if ( sharedModel.getName() != null && !StringUtils.equalsIgnoreCase( sharedModel.getName(),
|
||||
if ( StringUtils.isEmpty( sharedModel.getName() ) && !StringUtils.isEmpty(
|
||||
versionMetadata.getName() ) )
|
||||
{
|
||||
sharedModel.setName( "" );
|
||||
sharedModel.setName( versionMetadata.getName() );
|
||||
}
|
||||
|
||||
if ( sharedModel.getDescription() != null && !StringUtils.equalsIgnoreCase(
|
||||
|
|
Loading…
Reference in New Issue