summaryrefslogtreecommitdiffstats
path: root/ecomp-portal-FE-common/client/app/views
diff options
context:
space:
mode:
authorGUJJA <kg811t@research.att.com>2018-02-22 12:21:33 -0500
committerGUJJA <kg811t@research.att.com>2018-02-22 12:22:29 -0500
commitf59a56b7c12badbb41bb2155b6de47e9c9c48bcd (patch)
tree9911a3b302494fb1c6cd2798a97d680a38a04217 /ecomp-portal-FE-common/client/app/views
parentad024fa2186f73cfb54ecc3cd422d57d7ea87f93 (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/views')
-rw-r--r--ecomp-portal-FE-common/client/app/views/role/rolefunctionpopupController.js7
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;