summaryrefslogtreecommitdiffstats
path: root/ecomp-portal-FE-common
diff options
context:
space:
mode:
authorGUJJA <kg811t@research.att.com>2018-02-16 11:45:40 -0500
committerGUJJA <kg811t@research.att.com>2018-02-16 12:13:32 -0500
commit1376951553a11ed93a9fde45b7f26b51c0b31e9c (patch)
treeb4a62851ba83a49507dff0da3913e476b1309c58 /ecomp-portal-FE-common
parent2036d5039c90736c54484e539f37dfb8f661e4f1 (diff)
Added Junits
Issue-ID: PORTAL-162, PORTAL-163, PORTAL-168 Includes JUNITS, maven dependency version changes Change-Id: Ib13b03ece5816bffa263dd9180180d9c6070cebd Signed-off-by:GUJJA <kg811t@research.att.com>
Diffstat (limited to 'ecomp-portal-FE-common')
-rw-r--r--ecomp-portal-FE-common/client/app/views/role/rolefunctionpopupController.js5
1 files changed, 4 insertions, 1 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 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;