]> source.dussan.org Git - redmine.git/commitdiff
Fixes context menu broken by r3109 (#2405).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 30 Nov 2009 19:18:09 +0000 (19:18 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 30 Nov 2009 19:18:09 +0000 (19:18 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3111 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/issues_controller.rb
app/views/issues/context_menu.rhtml

index cf54db445a51ba248ddf5c5117429b0289622b6e..336f63b1698f54b1f60c99cdf55c284e5d1e74f7 100644 (file)
@@ -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']
index 3e22a17c94271eb7c770203499dab183e4c52ca9..9228ffda955c2212ca1ea7aff1fad47785d8fb6a 100644 (file)
@@ -18,6 +18,7 @@
                :class => 'icon-edit', :disabled => !@can[:edit] %></li>
 <% end %>
 
+       <% unless @tracker.nil? %>
        <li class="folder">                     
                <a href="#" class="submenu"><%= l(:field_tracker) %></a>
                <ul>
@@ -27,6 +28,7 @@
                <% end -%>
                </ul>
        </li>
+       <% end %>
        <li class="folder">                     
                <a href="#" class="submenu"><%= l(:field_priority) %></a>
                <ul>