You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@usergrid.apache.org by to...@apache.org on 2015/02/11 22:18:28 UTC

[19/25] incubator-usergrid git commit: fixed double slash bug in data explorer in admin portal

fixed double slash bug in data explorer in admin portal


Project: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/commit/373248be
Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/373248be
Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/373248be

Branch: refs/heads/USERGRID-273
Commit: 373248bed240df43e3e769b60a425dbbc9f61c07
Parents: 6dc62ed
Author: Rod Simpson <ro...@apigee.com>
Authored: Tue Jan 27 13:24:35 2015 -0600
Committer: Rod Simpson <ro...@apigee.com>
Committed: Tue Jan 27 13:24:35 2015 -0600

----------------------------------------------------------------------
 portal/js/global/ug-service.js | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/373248be/portal/js/global/ug-service.js
----------------------------------------------------------------------
diff --git a/portal/js/global/ug-service.js b/portal/js/global/ug-service.js
index 3401060..c4e0d53 100644
--- a/portal/js/global/ug-service.js
+++ b/portal/js/global/ug-service.js
@@ -448,8 +448,9 @@ AppServices.Services.factory('ug', function(configuration, $rootScope, utility,
         } else {
 
           var queryPath = data.path;
-          self.getCollection('query', queryPath, null,
-            'order by modified DESC', null);
+          //remove preceeding slash
+          queryPath = queryPath.replace(/^\//, ''); 
+          self.getCollection('query', queryPath, null, 'order by modified DESC', null);
 
         }
       });