Repository: kylin Updated Branches: refs/heads/master 56e600ffa -> effb57edb
view cube bug Signed-off-by: shaofengshi <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/kylin/repo Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/effb57ed Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/effb57ed Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/effb57ed Branch: refs/heads/master Commit: effb57edb32a4c8599a742c0f30b37ae6f1c45c4 Parents: 56e600f Author: luguosheng <[email protected]> Authored: Wed Nov 2 16:17:15 2016 +0800 Committer: shaofengshi <[email protected]> Committed: Wed Nov 2 16:26:36 2016 +0800 ---------------------------------------------------------------------- webapp/app/js/controllers/cubeEdit.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/kylin/blob/effb57ed/webapp/app/js/controllers/cubeEdit.js ---------------------------------------------------------------------- diff --git a/webapp/app/js/controllers/cubeEdit.js b/webapp/app/js/controllers/cubeEdit.js index 09dae15..acd4d32 100755 --- a/webapp/app/js/controllers/cubeEdit.js +++ b/webapp/app/js/controllers/cubeEdit.js @@ -293,11 +293,11 @@ KylinApp.controller('CubeEditCtrl', function ($scope, $q, $routeParams, $locatio }); var queryParam = { - cube_name: $routeParams.cubeName + cubeId: $routeParams.cubeName }; - CubeService.list(queryParam, {},function(instance){ - if (instance.length > 0) { - $scope.instance = instance[0]; + CubeService.getCube(queryParam, {},function(instance){ + if (instance) { + $scope.instance = instance; $scope.state.cubeInstance =angular.toJson($scope.instance,true); } else {
