Vote #78944
完了Cannot change the priority of the parent issue in issue query context menu when parent priority is independent of children
0%
説明
Also if Tracking settings are set to have parent priority independent of children, the context menu in issue query has priorities grayed out.
In fact, when normally editing, the priorities of parent issues are perfetcly editable.
This bug affects the context menu only.
journals
I have fixed my installation. Attached the patch. Fortunately it was very simple. I am not a Ruby programmer.
--------------------------------------------------------------------------------
LGTM.
This patch is same with #20992.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Toshi MARUYAMA wrote:
> LGTM.
> This patch is same with #20992.
Absolutely. The following code is the change made by #20992 (r14671).
<pre><code class="diff">
Index: app/views/issues/_attributes.html.erb
===================================================================
--- app/views/issues/_attributes.html.erb (revision 14670)
+++ app/views/issues/_attributes.html.erb (revision 14671)
@@ -11,7 +11,7 @@
<% end %>
<% if @issue.safe_attribute? 'priority_id' %>
-<p><%= f.select :priority_id, (@priorities.collect {|p| [p.name, p.id]}), {:required => true}, :disabled => !@issue.leaf? %></p>
+<p><%= f.select :priority_id, (@priorities.collect {|p| [p.name, p.id]}), {:required => true} %></p>
<% end %>
<% if @issue.safe_attribute? 'assigned_to_id' %>
</code></pre>
--------------------------------------------------------------------------------
Committed to the trunk. Thank you for detecting and fixing this issue.
--------------------------------------------------------------------------------
Merged from trunk to 3.4-stable and 3.3-stable.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
related_issues
relates,Closed,20992,Parent priority "Independent of subtasks" setting doesn't work
relates,Closed,28168,Allow context-menu edit of % done and priority of parent issues if the fields are not derived