Skip to content
Snippets Groups Projects
Verified Commit 281843fd authored by Martin Mladenov's avatar Martin Mladenov
Browse files

Remove return statement in transaction

parent 94592bf2
Branches
Tags
2 merge requests!918Project Forum Release 2.9.0,!870Improve project import page and add generic notifications
......@@ -79,15 +79,15 @@ module Admin
end
# If there is no event, return
return new_project unless event
next unless event
# Actually send notification if no failures occurred
event.notify(User.with_role(:client, project))
.notify(User.with_role(:employee, project.offerer.actable) - User.with_role(:client, project))
end
new_project
end
end
def prepare_notification_text(text, old_project, new_project)
text.to_str
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment