From 0418b00f6d811c7b407bd8abbe80064605e37c06 Mon Sep 17 00:00:00 2001 From: Thomas Duval Date: Fri, 3 Nov 2017 14:43:28 +0100 Subject: Fix a bug in categories Change-Id: I914f33c054dffc103cbe8c7e9165526b728a82ea --- .../edit/parameter/assignments/assignments.list.dir.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'moonv4') diff --git a/moonv4/moon_gui/static/app/policy/edit/parameter/assignments/assignments.list.dir.js b/moonv4/moon_gui/static/app/policy/edit/parameter/assignments/assignments.list.dir.js index 22931e4d..e396f74e 100644 --- a/moonv4/moon_gui/static/app/policy/edit/parameter/assignments/assignments.list.dir.js +++ b/moonv4/moon_gui/static/app/policy/edit/parameter/assignments/assignments.list.dir.js @@ -169,15 +169,15 @@ switch (type) { case ASSIGNMENTS_CST.TYPE.SUBJECT: - metaDataService.subject.findOne(data.subject_cat_id, setCategoryToData); + metaDataService.subject.findOne(data.category_id, setCategoryToData); break; case ASSIGNMENTS_CST.TYPE.OBJECT: - metaDataService.object.findOne(data.object_cat_id, setCategoryToData); + metaDataService.object.findOne(data.category_id, setCategoryToData); break; case ASSIGNMENTS_CST.TYPE.ACTION: - metaDataService.action.findOne(data.action_cat_id, setCategoryToData); + metaDataService.action.findOne(data.category_id, setCategoryToData); break; } @@ -257,7 +257,7 @@ subject.loader = true; - assignmentsService.subject.delete(list.policy.id, subject.subject_id, subject.subject_cat_id, dataId, deleteSubSuccess, deleteSubError); + assignmentsService.subject.delete(list.policy.id, subject.subject_id, subject.category_id, dataId, deleteSubSuccess, deleteSubError); function deleteSubSuccess(data) { @@ -289,7 +289,7 @@ object.loader = true; - assignmentsService.object.delete(list.policy.id, object.object_id, object.object_cat_id, dataId, deleteObjSuccess, deleteObjError); + assignmentsService.object.delete(list.policy.id, object.object_id, object.category_id, dataId, deleteObjSuccess, deleteObjError); function deleteObjSuccess(data) { @@ -320,7 +320,7 @@ action.loader = true; - assignmentsService.action.delete(list.policy.id, action.action_id, action.action_cat_id, dataId, deleteActSuccess, deleteActError); + assignmentsService.action.delete(list.policy.id, action.action_id, action.category_id, dataId, deleteActSuccess, deleteActError); function deleteActSuccess(data) { -- cgit 1.2.3-korg