[#2275] Don't need to check for the budget module for this.

This commit is contained in:
Eric Davis
2009-08-05 16:00:17 -07:00
parent d3f6ca5433
commit a61b41a22b
2 changed files with 5 additions and 29 deletions
+4 -8
View File
@@ -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