mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-10-03 17:00:43 -04:00
added tracker nil check
This commit is contained in:
1 parent
502ba94465
commit
df49964bf9
2 files changed
+7
-1
No files matched your search
@@ -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