]> source.dussan.org Git - archiva.git/commitdiff
fix mapping of browse result
authorOlivier Lamy <olamy@apache.org>
Thu, 1 Mar 2012 12:12:16 +0000 (12:12 +0000)
committerOlivier Lamy <olamy@apache.org>
Thu, 1 Mar 2012 12:12:16 +0000 (12:12 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1295529 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js

index cbde948b8be4ac9541e0ad3b1d34675f9139622b..1f728dfe0a15f3639227d755f4570de7ca7220a0 100644 (file)
@@ -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 [];
   }