remove-edit-step-from-status-context-menu.diff

Eric Davis, 2008-05-07 02:18

Download (789 Bytes)

View differences:

app/views/issues/context_menu.rhtml
6 6
		<a href="#" class="submenu" onclick="return false;"><%= l(:field_status) %></a>
7 7
		<ul>
8 8
		<% @statuses.each do |s| -%>
9
		    <li><%= context_menu_link s.name, {:controller => 'issues', :action => 'edit', :id => @issue, :issue => {:status_id => s}},
9
		    <li><%= context_menu_link s.name, {:controller => 'issues', :action => 'edit', :id => @issue, 'issue[status_id]' => s, :back_to => @back}, :method => :post,
10 10
		                              :selected => (s == @issue.status), :disabled => !(@can[:update] && @allowed_statuses.include?(s)) %></li>
11 11
		<% end -%>
12 12
		</ul>