From 6dd15950bee33f05c82575bdfa827a97593b6465 Mon Sep 17 00:00:00 2001 From: Gregor Schmidt Date: Mon, 16 May 2011 13:56:40 +0200 Subject: [PATCH] not rendering backlogs fields in modal window via hook, since they are already rendered by or IssueView --- lib/backlogs_hooks.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/backlogs_hooks.rb b/lib/backlogs_hooks.rb index 91b42b4dbc..24f84ab25f 100644 --- a/lib/backlogs_hooks.rb +++ b/lib/backlogs_hooks.rb @@ -35,9 +35,10 @@ module BacklogsPlugin end def view_issues_show_details_bottom(context = {}) - issue = context[:issue] + return '' unless context[:issue].project.module_enabled? 'backlogs' + return '' if context[:from] == 'RedmineBacklogs::IssueView::FieldsParagraph' - return '' unless issue.project.module_enabled? 'backlogs' + issue = context[:issue] snippet = ''