]> source.dussan.org Git - redmine.git/commitdiff
Fix: Cannot change the priority of the parent issue in issues context menu (#27533).
authorGo MAEDA <maeda@farend.jp>
Tue, 26 Dec 2017 07:01:56 +0000 (07:01 +0000)
committerGo MAEDA <maeda@farend.jp>
Tue, 26 Dec 2017 07:01:56 +0000 (07:01 +0000)
Patch by Vito Marolda.

git-svn-id: http://svn.redmine.org/redmine/trunk@17129 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/context_menus/issues.html.erb

index 94bb3eab46fabd3928651b81b54240a36d8ead3a..c24a7aeca7aa0b23c8fe3f222a79dd746e539022 100644 (file)
@@ -39,7 +39,7 @@
     <ul>
     <% @priorities.each do |p| -%>
         <li><%= context_menu_link p.name, bulk_update_issues_path(:ids => @issue_ids, :issue => {'priority_id' => p}, :back_url => @back), :method => :post,
-                                  :selected => (@issue && p == @issue.priority), :disabled => (!@can[:edit] || @issues.detect {|i| !i.leaf?}) %></li>
+                                  :selected => (@issue && p == @issue.priority), :disabled => (!@can[:edit]) %></li>
     <% end -%>
     </ul>
   </li>