mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-10-03 17:00:43 -04:00
force a tracker if still nil
This commit is contained in:
1 parent
df49964bf9
commit
c24ec93335
1 file changed
+1
@@ -26,6 +26,7 @@ module RedmineQbo
|
||||
|
||||
if context[:issue].tracker.nil?
|
||||
context[:issue].tracker = trackers_for_select(context[:issue]).first
|
||||
context[:issue].tracker = Tracker.first if context[:issue].tracker.nil?
|
||||
context[:controller].flash[:error] = I18n.t(:notice_error_tracker_nil) + context[:issue].tracker.to_s
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user