Repository: kylin Updated Branches: refs/heads/1.5.4-rc1 64c5882e3 -> 07f1767f1
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/07f1767f Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/07f1767f Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/07f1767f Branch: refs/heads/1.5.4-rc1 Commit: 07f1767f10a6b7fa6172a3311c36333148cfe982 Parents: 64c5882 Author: kangkaisen <kangkai...@live.com> Authored: Mon Sep 5 14:11:37 2016 +0800 Committer: Jason <jiat...@163.com> Committed: Tue Sep 6 11:25:19 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/07f1767f/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(){