mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-07-02 07:51:09 -04:00
Create controller_issues_listener.rb
This commit is contained in:
@@ -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
|
||||||
Reference in New Issue
Block a user