mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-02-13 09:13:58 -05:00
added tracker nil check
This commit is contained in:
@@ -24,6 +24,11 @@ module RedmineQbo
|
||||
context[:controller].flash[:error] = I18n.t(:notice_error_project_nil) + context[:issue].project.to_s
|
||||
end
|
||||
|
||||
if context[:issue].tracker.nil?
|
||||
context[:issue].tracker = trackers_for_select(context[:issue]).first
|
||||
context[:controller].flash[:error] = I18n.t(:notice_error_tracker_nil) + context[:issue].tracker.to_s
|
||||
end
|
||||
|
||||
return context
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user