diff --git a/entity/Notification_entity/entityfields/setnotificationstate/children/archieve/onActionProcess.js b/entity/Notification_entity/entityfields/setnotificationstate/children/archieve/onActionProcess.js index a32fae0a7a2ce1c47bfea88cd9608b892a9033fc..8a6a2c0e84604ef39bfb79ecf7b05d6e43aa7d77 100644 --- a/entity/Notification_entity/entityfields/setnotificationstate/children/archieve/onActionProcess.js +++ b/entity/Notification_entity/entityfields/setnotificationstate/children/archieve/onActionProcess.js @@ -6,22 +6,16 @@ import("system.neon"); var user = tools.getCurrentUser(); var selectedNotifications = JSON.parse(vars.get("$sys.selection")); -logging.log("selectedNotifications: "+ typeof selectedNotifications + " " + selectedNotifications); var userNotis = notification.getUserNotifications(user["name"], null); -logging.log("userNotis: " + userNotis); var contentId; - for(var x = 0; x < selectedNotifications.length; x++) { for(var i = 0; i < userNotis.length; i++) { - logging.log("PROPID: " + userNotis[i][notification.PROP_ID]); - logging.log("PROPID2: " + selectedNotifications[x]); if(userNotis[i][notification.PROP_ID] == selectedNotifications[x]) { - logging.log("success"); contentId = userNotis[i][notification.PROP_CONTENTID]; notification.updateUserNotificationState(user["name"], contentId, notification.STATE_ARCHIVE); break; diff --git a/entity/Notification_entity/entityfields/setnotificationstate/children/setread/onActionProcess.js b/entity/Notification_entity/entityfields/setnotificationstate/children/setread/onActionProcess.js index db0b5f2b8d2e116287e09c2c65b6f3fe223baafc..b00ff316d43bf58300b9da509ec1d78e547e52fa 100644 --- a/entity/Notification_entity/entityfields/setnotificationstate/children/setread/onActionProcess.js +++ b/entity/Notification_entity/entityfields/setnotificationstate/children/setread/onActionProcess.js @@ -6,22 +6,16 @@ import("system.neon"); var user = tools.getCurrentUser(); var selectedNotifications = JSON.parse(vars.get("$sys.selection")); -logging.log("selectedNotifications: "+ typeof selectedNotifications + " " + selectedNotifications); var userNotis = notification.getUserNotifications(user["name"], null); -logging.log("userNotis: " + userNotis); var contentId; - for(var x = 0; x < selectedNotifications.length; x++) { for(var i = 0; i < userNotis.length; i++) { - logging.log("PROPID: " + userNotis[i][notification.PROP_ID]); - logging.log("PROPID2: " + selectedNotifications[x]); if(userNotis[i][notification.PROP_ID] == selectedNotifications[x]) { - logging.log("success"); contentId = userNotis[i][notification.PROP_CONTENTID]; notification.updateUserNotificationState(user["name"], contentId, notification.STATE_CONFIRMED); break; diff --git a/entity/Notification_entity/entityfields/setnotificationstate/children/setunread/onActionProcess.js b/entity/Notification_entity/entityfields/setnotificationstate/children/setunread/onActionProcess.js index 08ba8962c048dcb2f0404ef6c0787947ef506424..e2b7ef56da954598a4bf8858e32877048d741269 100644 --- a/entity/Notification_entity/entityfields/setnotificationstate/children/setunread/onActionProcess.js +++ b/entity/Notification_entity/entityfields/setnotificationstate/children/setunread/onActionProcess.js @@ -6,22 +6,16 @@ import("system.neon"); var user = tools.getCurrentUser(); var selectedNotifications = JSON.parse(vars.get("$sys.selection")); -logging.log("selectedNotifications: "+ typeof selectedNotifications + " " + selectedNotifications); var userNotis = notification.getUserNotifications(user["name"], null); -logging.log("userNotis: " + userNotis); var contentId; - for(var x = 0; x < selectedNotifications.length; x++) { for(var i = 0; i < userNotis.length; i++) { - logging.log("PROPID: " + userNotis[i][notification.PROP_ID]); - logging.log("PROPID2: " + selectedNotifications[x]); if(userNotis[i][notification.PROP_ID] == selectedNotifications[x]) { - logging.log("success"); contentId = userNotis[i][notification.PROP_CONTENTID]; notification.updateUserNotificationState(user["name"], contentId, notification.STATE_UNSEEN); break;