Remove unused vars and methods
[policy/engine.git] / POLICY-SDK-APP / src / main / webapp / app / policyApp / controller / dictionaryController / attributeDictController.js
index 5190916..663e2af 100644 (file)
@@ -1,8 +1,8 @@
 /*-
  * ============LICENSE_START=======================================================
- * ECOMP Policy Engine
+ * ONAP Policy Engine
  * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2017, 2019 AT&T Intellectual Property. All rights reserved.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -27,7 +27,7 @@ app.controller('editAttributeController' ,function ($scope, $modalInstance, mess
         $scope.disableCd=true;
         var headers = message.attributeDictionaryData.attributeValue;
         var splitEqual = ',';
-        if(headers != null){
+        if(headers != null && headers != ""){
                if (headers.indexOf(splitEqual) >= 0) {
                        var splitValue = headers.split(splitEqual);
                        for(i = 0; i < splitValue.length; i++){
@@ -55,7 +55,6 @@ app.controller('editAttributeController' ,function ($scope, $modalInstance, mess
        if(!regex.test(attributeDictionaryData.xacmlId)) {
                Notification.error("Enter Valid Attribute Name without spaces or special characters");
        }else{
-               var finalData = extend(attributeDictionaryData, $scope.attributeDatas[0]);
                var uuu =  "saveDictionary/attribute_dictionary/save_attribute";
                var postData={attributeDictionaryData: attributeDictionaryData, userid: userid};
                $.ajax({
@@ -101,4 +100,4 @@ app.controller('editAttributeController' ,function ($scope, $modalInstance, mess
     $scope.close = function() {
         $modalInstance.close();
     };
-});
\ No newline at end of file
+});