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/10/29 10:29:49 UTC

incubator-kylin git commit: KYLIN-919 check model name duplicate case-insensitive

Repository: incubator-kylin
Updated Branches:
  refs/heads/2.x-staging fc3cf5946 -> edf93ea3f


KYLIN-919 check model name duplicate case-insensitive


Project: http://git-wip-us.apache.org/repos/asf/incubator-kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-kylin/commit/edf93ea3
Tree: http://git-wip-us.apache.org/repos/asf/incubator-kylin/tree/edf93ea3
Diff: http://git-wip-us.apache.org/repos/asf/incubator-kylin/diff/edf93ea3

Branch: refs/heads/2.x-staging
Commit: edf93ea3fbb01ab71c0c1bc72e63e695f24dbf41
Parents: fc3cf59
Author: jiazhong <ji...@ebay.com>
Authored: Thu Oct 29 17:29:06 2015 +0800
Committer: jiazhong <ji...@ebay.com>
Committed: Thu Oct 29 17:29:37 2015 +0800

----------------------------------------------------------------------
 webapp/app/js/controllers/modelSchema.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/edf93ea3/webapp/app/js/controllers/modelSchema.js
----------------------------------------------------------------------
diff --git a/webapp/app/js/controllers/modelSchema.js b/webapp/app/js/controllers/modelSchema.js
index ccb0013..f4bae9e 100644
--- a/webapp/app/js/controllers/modelSchema.js
+++ b/webapp/app/js/controllers/modelSchema.js
@@ -166,7 +166,7 @@ KylinApp.controller('ModelSchemaCtrl', function ($scope, QueryService, UserServi
 
     var modelName = $scope.modelsManager.selectedModel.name.toUpperCase();
     var models = $scope.modelsManager.modelNameList;
-    if (models.indexOf(modelName) != -1) {
+    if (models.indexOf(modelName) != -1 || models.indexOf(modelName.toLowerCase()) !=-1) {
       SweetAlert.swal('', "Model named [" + modelName + "] already exist!", 'warning');
       return false;
     }