diff options
author | Olivier Lamy <olamy@apache.org> | 2012-03-01 12:12:16 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2012-03-01 12:12:16 +0000 |
commit | 65dd1c69b61aa38ef749565827e6ae0b9ef4b381 (patch) | |
tree | f18cadd17d0d390a669b1d6d677574840ca49dc1 | |
parent | 9500200a515f416783453de51a0c381427201a07 (diff) | |
download | archiva-65dd1c69b61aa38ef749565827e6ae0b9ef4b381.tar.gz archiva-65dd1c69b61aa38ef749565827e6ae0b9ef4b381.zip |
fix mapping of browse result
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1295529 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js index cbde948b8..1f728dfe0 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js @@ -294,11 +294,11 @@ $(function() { mapbrowseResultEntries=function(data){ $.log("mapbrowseResultEntries"); - if (data) { - return $.isArray(data) ? - $.map(data,function(item){ + if (data.browseResultEntries) { + return $.isArray(data.browseResultEntries) ? + $.map(data.browseResultEntries,function(item){ return new BrowseResultEntry(item.name, item.project); - } ).sort(): [data]; + } ).sort(): [data.browseResultEntries]; } return []; } |