Create controller_issues_listener.rb

This commit is contained in:
ricky authored and GitHub committed 2017-11-19 22:01:20 -05:00
1 parent cee8ddced1
commit 299a28a0d2
1 file changed
+5
+5
View File
@@ -0,0 +1,5 @@
class ControllerIssuesListener.rb < Redmine::Hook::ControllerListener
def controller_issues_new_before_save(context={})
context[:issue].project = Project.find_by identifier: context[:params][:project]
end
end