Skip to content

Commit

Permalink
Approval workflow notifications #1566
Browse files Browse the repository at this point in the history
  • Loading branch information
picman committed Nov 25, 2024
1 parent be919d2 commit eed5fd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/dmsf_workflows_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,9 @@ def new_action
assignments.first.dmsf_workflow_step.step != action.dmsf_workflow_step_assignment.dmsf_workflow_step.step
# Next step
assignments.each do |assignment|
next if assignment.user && DmsfMailer.get_notify_users(@project, revision.dmsf_file,
next if assignment.user.nil? || DmsfMailer.get_notify_users(@project, revision.dmsf_file,
force_notification: true)
.include?(assignment.user)
.exclude?(assignment.user)

DmsfMailer.deliver_workflow_notification(
[assignment.user],
Expand Down

0 comments on commit eed5fd9

Please sign in to comment.