diff options
author | GUJJA <kg811t@research.att.com> | 2018-02-22 12:21:33 -0500 |
---|---|---|
committer | GUJJA <kg811t@research.att.com> | 2018-02-22 12:22:29 -0500 |
commit | f59a56b7c12badbb41bb2155b6de47e9c9c48bcd (patch) | |
tree | 9911a3b302494fb1c6cd2798a97d680a38a04217 /ecomp-portal-FE-common/client/app | |
parent | ad024fa2186f73cfb54ecc3cd422d57d7ea87f93 (diff) |
Added Junits
Issue-ID: PORTAL-136
Includes JUNITS
Change-Id: I859aa9de0ce51a1ac699c81e98c2af7fda7ae660
Signed-off-by:GUJJA <kg811t@research.att.com>
Diffstat (limited to 'ecomp-portal-FE-common/client/app')
-rw-r--r-- | ecomp-portal-FE-common/client/app/views/role/rolefunctionpopupController.js | 7 |
1 files changed, 5 insertions, 2 deletions
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 0fa84f31..4573effa 100644 --- a/ecomp-portal-FE-common/client/app/views/role/rolefunctionpopupController.js +++ b/ecomp-portal-FE-common/client/app/views/role/rolefunctionpopupController.js @@ -124,8 +124,11 @@ app.controller('rolefunctionpopupController',function($scope, confirmBoxService, break; } if (!isEditing) { - if (message.availableRoleFunctions[x].code == availableRoleFunction.code) { - confirmBoxService.showInformation("Code already exists. Please create a role function with a different code to proceed."); + if (message.availableRoleFunctions[x].type == availableRoleFunction.type + && message.availableRoleFunctions[x].code == availableRoleFunction.code + && message.availableRoleFunctions[x].action == availableRoleFunction.action + ) { + confirmBoxService.showInformation("Please make sure code, type and action is unique. Please create a role function with a different code or type or action to proceed."); exists = true; availableRoleFunction.name = $scope.tempText; break; |