[#2275] Don't need to check for the budget module for this.
This commit is contained in:
@@ -1,12 +1,8 @@
|
||||
class OverheadIssueHook < Redmine::Hook::ViewListener
|
||||
def view_issues_show_details_bottom(context={})
|
||||
if context[:project].module_enabled?('budget_module')
|
||||
return context[:controller].send(:render_to_string, {
|
||||
:partial => 'issues/show_overhead',
|
||||
:locals => {:issue => context[:issue]}
|
||||
})
|
||||
else
|
||||
return ''
|
||||
end
|
||||
return context[:controller].send(:render_to_string, {
|
||||
:partial => 'issues/show_overhead',
|
||||
:locals => {:issue => context[:issue]}
|
||||
})
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user