You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by zh...@apache.org on 2015/06/11 09:24:49 UTC
[5/5] incubator-kylin git commit: KYLIN-823,
update dimension type judge logic
KYLIN-823,update dimension type judge logic
Project: http://git-wip-us.apache.org/repos/asf/incubator-kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-kylin/commit/ffd1c96c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-kylin/tree/ffd1c96c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-kylin/diff/ffd1c96c
Branch: refs/heads/0.7-staging
Commit: ffd1c96c6296d529df6d21af517ded299c74f931
Parents: c703296
Author: jiazhong <ji...@ebay.com>
Authored: Thu Jun 11 11:09:06 2015 +0800
Committer: jiazhong <ji...@ebay.com>
Committed: Thu Jun 11 15:23:15 2015 +0800
----------------------------------------------------------------------
webapp/app/js/controllers/cubeEdit.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/ffd1c96c/webapp/app/js/controllers/cubeEdit.js
----------------------------------------------------------------------
diff --git a/webapp/app/js/controllers/cubeEdit.js b/webapp/app/js/controllers/cubeEdit.js
index 7f8cb27..5d4030e 100755
--- a/webapp/app/js/controllers/cubeEdit.js
+++ b/webapp/app/js/controllers/cubeEdit.js
@@ -339,7 +339,7 @@ KylinApp.controller('CubeEditCtrl', function ($scope, $q, $routeParams, $locatio
}
//normal column
- if (dimension.column && !dimension.hierarchy && dimension.column.length == 1) {
+ else if (dimension.column && !dimension.hierarchy && dimension.column.length == 1) {
for (var i = 0; i < tmpRowKeyColumns.length; i++) {
if (tmpRowKeyColumns[i].column == dimension.column[0])
break;
@@ -355,7 +355,7 @@ KylinApp.controller('CubeEditCtrl', function ($scope, $q, $routeParams, $locatio
}
}
// hierarchy
- else if (dimension.hierarchy && dimension.column.length) {
+ if (dimension.hierarchy && dimension.column.length) {
var hierarchyUnit = [];
angular.forEach(dimension.column, function (hier_column, index) {