]> source.dussan.org Git - redmine.git/commitdiff
Merged r3887 from trunk.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 25 Jul 2010 11:56:45 +0000 (11:56 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 25 Jul 2010 11:56:45 +0000 (11:56 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.0-stable@3888 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/issues/context_menu.rhtml

index 489896e09fd99b9f1b2b87bb9632355a9b3db25f..d9e92a4f86c8356942fe28f410703d4a118dfa56 100644 (file)
@@ -34,7 +34,7 @@
                <ul>
                <% @priorities.each do |p| -%>
                    <li><%= context_menu_link p.name, {:controller => 'issues', :action => 'bulk_edit', :ids => @issues.collect(&:id), :issue => {'priority_id' => p}, :back_url => @back}, :method => :post,
-                                             :selected => (@issue && p == @issue.priority), :disabled => (!@can[:edit] || !@issue.leaf?) %></li>
+                                             :selected => (@issue && p == @issue.priority), :disabled => (!@can[:edit] || @issues.detect {|i| !i.leaf?}) %></li>
                <% end -%>
                </ul>
        </li>
@@ -83,7 +83,7 @@
                <ul>
                <% (0..10).map{|x|x*10}.each do |p| -%>
                    <li><%= context_menu_link "#{p}%", {:controller => 'issues', :action => 'bulk_edit', :ids => @issues.collect(&:id), :issue => {'done_ratio' => p}, :back_url => @back}, :method => :post,
-                                                 :selected => (@issue && p == @issue.done_ratio), :disabled => (!@can[:edit] || !@issue.leaf?) %></li>
+                                                 :selected => (@issue && p == @issue.done_ratio), :disabled => (!@can[:edit] || @issues.detect {|i| !i.leaf?}) %></li>
                <% end -%>
                </ul>
        </li>