diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/proxy-connectors.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/proxy-connectors.js index 1ed843822..6a2660e08 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/proxy-connectors.js +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/proxy-connectors.js @@ -64,34 +64,30 @@ $(function() { //sourceRepoId for(i=0;i0){ - $.log("sourceRepo!=null:"+sourceRepo[0]); sourceRepo[0].targetRepos.push(curTarget); } else { $.log("sourceRepo==null:"+curSrcRepo); sourcesRepos.push({source:curSrcRepo,targetRepos:[curTarget]}); + if (sourceRepo!=null){ + $.log("sourceRepoId:"+curSrcRepo); + sourcesRepos.push({source:curSrcRepo,targetRepos:[curTarget]}); + } else { + sourceRepo.targetRepos.push(curTarget); } } - - $.log("sourcesRepo.length:"+sourcesRepos.length); - for(i=0;i

${$.i18n.prop('proxy-connectors.list')}

-
-
- \ No newline at end of file