mirror of https://github.com/apache/archiva.git
fix detail view for packaging and parent
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1302830 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6313e37b7f
commit
54b65bcb4d
|
@ -300,25 +300,6 @@ public class DefaultBrowseService
|
|||
}
|
||||
}
|
||||
}
|
||||
if ( versionMetadata == null )
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
MavenProjectFacet mavenFacet = new MavenProjectFacet();
|
||||
mavenFacet.setGroupId( groupId );
|
||||
mavenFacet.setArtifactId( artifactId );
|
||||
versionMetadata.addFacet( mavenFacet );
|
||||
MavenProjectFacet versionMetadataMavenFacet =
|
||||
(MavenProjectFacet) versionMetadata.getFacet( MavenProjectFacet.FACET_ID );
|
||||
if ( versionMetadataMavenFacet != null )
|
||||
{
|
||||
if ( mavenFacet.getPackaging() != null && !StringUtils.equalsIgnoreCase( mavenFacet.getPackaging(),
|
||||
versionMetadataMavenFacet.getPackaging() ) )
|
||||
{
|
||||
mavenFacet.setPackaging( null );
|
||||
}
|
||||
}
|
||||
|
||||
return versionMetadata;
|
||||
}
|
||||
|
|
|
@ -185,6 +185,7 @@ $(function() {
|
|||
mainContent.find("#browse_breadcrumb" ).show();
|
||||
mainContent.find("#browse_breadcrumb" ).html(mediumSpinnerImg());
|
||||
var metadataUrl="restServices/archivaServices/browseService/projectVersionMetadata/"+encodeURIComponent(groupId)+"/"+encodeURIComponent(artifactId);
|
||||
metadataUrl+="/"+encodeURIComponent(version);
|
||||
var selectedRepo=getSelectedBrowsingRepository();
|
||||
if (selectedRepo){
|
||||
metadataUrl+="?repositoryId="+encodeURIComponent(selectedRepo);
|
||||
|
|
Loading…
Reference in New Issue