You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by sh...@apache.org on 2015/11/05 02:54:30 UTC

[16/31] incubator-kylin git commit: KYLIN-919 check model name duplicate case-insensitive

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/107d3395
Tree: http://git-wip-us.apache.org/repos/asf/incubator-kylin/tree/107d3395
Diff: http://git-wip-us.apache.org/repos/asf/incubator-kylin/diff/107d3395

Branch: refs/heads/KYLIN-1112
Commit: 107d3395a51097be99aa2a9046decc443b8ecb53
Parents: 88d6485
Author: jiazhong <ji...@ebay.com>
Authored: Thu Oct 29 17:29:06 2015 +0800
Committer: shaofengshi <sh...@apache.org>
Committed: Thu Nov 5 09:53:16 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/107d3395/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;
     }