From: Jean-Philippe Lang Date: Mon, 30 Nov 2009 19:18:09 +0000 (+0000) Subject: Fixes context menu broken by r3109 (#2405). X-Git-Tag: 0.9.0~151 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8b8c24e61f37cee0904ad8d44184da58a2f8ca43;p=redmine.git Fixes context menu broken by r3109 (#2405). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3111 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb index cf54db445..336f63b16 100644 --- a/app/controllers/issues_controller.rb +++ b/app/controllers/issues_controller.rb @@ -421,9 +421,9 @@ class IssuesController < ApplicationController if @project @assignables = @project.assignable_users @assignables << @issue.assigned_to if @issue && @issue.assigned_to && !@assignables.include?(@issue.assigned_to) + @trackers = @project.trackers end - @trackers = @project.trackers @priorities = IssuePriority.all.reverse @statuses = IssueStatus.find(:all, :order => 'position') @back = params[:back_url] || request.env['HTTP_REFERER'] diff --git a/app/views/issues/context_menu.rhtml b/app/views/issues/context_menu.rhtml index 3e22a17c9..9228ffda9 100644 --- a/app/views/issues/context_menu.rhtml +++ b/app/views/issues/context_menu.rhtml @@ -18,6 +18,7 @@ :class => 'icon-edit', :disabled => !@can[:edit] %> <% end %> + <% unless @tracker.nil? %>
  • <%= l(:field_tracker) %>
  • + <% end %>
  • <%= l(:field_priority) %>