%
possible_cost_objects = issues.inject(issues.first.project.cost_objects) do |intersect, issue|
issue.project.cost_objects & intersect
end
%>
<% unless possible_cost_objects.empty? -%>
<% possible_cost_objects.each do |co| -%>
-
<%= context_menu_link co.subject, {:controller => 'issues', :action => 'bulk_edit', :ids => issues.collect(&:id), 'cost_object_id' => co, :back_url => back}, :method => :post,
:selected => (@issue && co == @issue.cost_object), :disabled => !can[:edit] %>
<% end -%>
<% else -%>
- <%= l(:notice_cost_object_conflict)%>
<% end -%>