Approval workflow notifications #1566

This commit is contained in:
Karel Pičman 2024-11-25 10:27:41 +01:00
parent eed5fd91e4
commit acde546449

View File

@ -159,9 +159,9 @@ class DmsfWorkflowsController < ApplicationController
assignments.first.dmsf_workflow_step.step != action.dmsf_workflow_step_assignment.dmsf_workflow_step.step assignments.first.dmsf_workflow_step.step != action.dmsf_workflow_step_assignment.dmsf_workflow_step.step
# Next step # Next step
assignments.each do |assignment| assignments.each do |assignment|
next if assignment.user.nil? || DmsfMailer.get_notify_users(@project, revision.dmsf_file, next if assignment.user.nil? ||
force_notification: true) DmsfMailer.get_notify_users(@project, revision.dmsf_file, force_notification: true)
.exclude?(assignment.user) .exclude?(assignment.user)
DmsfMailer.deliver_workflow_notification( DmsfMailer.deliver_workflow_notification(
[assignment.user], [assignment.user],