Repository: kylin Updated Branches: refs/heads/master 7bc420b21 -> 08f7ddab1
KYLIN-1965: bug fix Signed-off-by: Jason <jiat...@163.com> Project: http://git-wip-us.apache.org/repos/asf/kylin/repo Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/08f7ddab Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/08f7ddab Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/08f7ddab Branch: refs/heads/master Commit: 08f7ddab1c63db4bcd4d8d461a8a21da0586512d Parents: 7bc420b Author: kangkaisen <kangkai...@live.com> Authored: Mon Sep 5 14:11:37 2016 +0800 Committer: Jason <jiat...@163.com> Committed: Tue Sep 6 11:04:30 2016 +0800 ---------------------------------------------------------------------- webapp/app/js/controllers/cubeMeasures.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/kylin/blob/08f7ddab/webapp/app/js/controllers/cubeMeasures.js ---------------------------------------------------------------------- diff --git a/webapp/app/js/controllers/cubeMeasures.js b/webapp/app/js/controllers/cubeMeasures.js index 794d2b2..2f191f9 100644 --- a/webapp/app/js/controllers/cubeMeasures.js +++ b/webapp/app/js/controllers/cubeMeasures.js @@ -206,7 +206,7 @@ KylinApp.controller('CubeMeasuresCtrl', function ($scope, $modal,MetaModel,cubes names.push(measures[i].name); } var index = names.indexOf(newMeasure.name); - return index > -1; + return (index > -1 && index != $scope.updateMeasureStatus.editIndex); } $scope.nextParameterInit = function(){