From 65dd1c69b61aa38ef749565827e6ae0b9ef4b381 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Thu, 1 Mar 2012 12:12:16 +0000 Subject: [PATCH] fix mapping of browse result git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1295529 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/webapp/js/archiva/search.js | 8 ++++---- 1 file 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 []; } -- 2.39.5