From 8d0ac93c80f408ecec58914cd4e82b9456899f58 Mon Sep 17 00:00:00 2001 From: mlorb Date: Tue, 13 Feb 2018 11:01:45 +0100 Subject: [PATCH] add check to start work on next task notification if recent changes notification is switched off --- app/controllers/my_modules_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/my_modules_controller.rb b/app/controllers/my_modules_controller.rb index 3908ef9a3..b9659c435 100644 --- a/app/controllers/my_modules_controller.rb +++ b/app/controllers/my_modules_controller.rb @@ -585,7 +585,7 @@ class MyModulesController < ApplicationController ) # create notification for all users on the next modules in the workflow @my_module.my_modules.map(&:users).flatten.uniq.each do |target_user| - next if target_user == current_user + next if target_user == current_user || !target_user.recent_notification UserNotification.create(notification: notification, user: target_user) end end