You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@usergrid.apache.org by ro...@apache.org on 2015/02/11 02:05:28 UTC
incubator-usergrid git commit: Portal - fixed duplicate slash bug on
data explorer
Repository: incubator-usergrid
Updated Branches:
refs/heads/master a82f0fb34 -> da9f3c8bf
Portal - fixed duplicate slash bug on data explorer
Project: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/commit/da9f3c8b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/da9f3c8b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/da9f3c8b
Branch: refs/heads/master
Commit: da9f3c8bf0804c3aa43fe0b8fcdc568727a416f3
Parents: a82f0fb
Author: Rod Simpson <ro...@apigee.com>
Authored: Tue Feb 10 18:05:21 2015 -0700
Committer: Rod Simpson <ro...@apigee.com>
Committed: Tue Feb 10 18:05:21 2015 -0700
----------------------------------------------------------------------
portal/js/global/ug-service.js | 2 ++
1 file changed, 2 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/da9f3c8b/portal/js/global/ug-service.js
----------------------------------------------------------------------
diff --git a/portal/js/global/ug-service.js b/portal/js/global/ug-service.js
index 8f40459..9eed13a 100644
--- a/portal/js/global/ug-service.js
+++ b/portal/js/global/ug-service.js
@@ -381,6 +381,8 @@ AppServices.Services.factory('ug', function (configuration, $rootScope,utility,
} else {
var queryPath = data.path;
+ //remove preceeding slash
+ queryPath = queryPath.replace(/^\//, '');
self.getCollection('query', queryPath, null, 'order by modified DESC', null);
}