X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=ecomp-portal-FE-common%2Fclient%2Fapp%2Fviews%2Frole%2FrolefunctionpopupController.js;fp=ecomp-portal-FE-common%2Fclient%2Fapp%2Fviews%2Frole%2FrolefunctionpopupController.js;h=0fa84f3193bf8f2f5b7d7f85b1d0f6be38fa9d84;hb=1376951553a11ed93a9fde45b7f26b51c0b31e9c;hp=9144bcb16ac539cbf5985e9690a56aec40a79b4c;hpb=2036d5039c90736c54484e539f37dfb8f661e4f1;p=portal.git diff --git a/ecomp-portal-FE-common/client/app/views/role/rolefunctionpopupController.js b/ecomp-portal-FE-common/client/app/views/role/rolefunctionpopupController.js index 9144bcb1..0fa84f31 100644 --- a/ecomp-portal-FE-common/client/app/views/role/rolefunctionpopupController.js +++ b/ecomp-portal-FE-common/client/app/views/role/rolefunctionpopupController.js @@ -114,7 +114,10 @@ app.controller('rolefunctionpopupController',function($scope, confirmBoxService, var exists = false, x; for (x in message.availableRoleFunctions) { console.log(message.availableRoleFunctions[x].name); - if (message.availableRoleFunctions[x].name == availableRoleFunction.name) { + if (message.availableRoleFunctions[x].type == availableRoleFunction.type + && message.availableRoleFunctions[x].code == availableRoleFunction.code + && message.availableRoleFunctions[x].action == availableRoleFunction.action + && message.availableRoleFunctions[x].name == availableRoleFunction.name) { confirmBoxService.showInformation("Role Function already exists."); exists = true; availableRoleFunction.name = $scope.tempText;