summaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-03-01 20:22:08 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-03-01 20:22:08 +0000
commit7448e0dbc41a53f643ac3c8ebd486d9aa02f593b (patch)
treeee07026dcfa17c2e13e0723f9dff25150c263d49 /app/views
parentac46497f1abd9e2e69a0b3c4848d8825847d1934 (diff)
downloadredmine-7448e0dbc41a53f643ac3c8ebd486d9aa02f593b.tar.gz
redmine-7448e0dbc41a53f643ac3c8ebd486d9aa02f593b.zip
Fixed that the bulk edit/copy form does not propose versions and categories for the target project (#10350).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9046 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views')
-rw-r--r--app/views/issues/bulk_edit.html.erb9
1 files changed, 2 insertions, 7 deletions
diff --git a/app/views/issues/bulk_edit.html.erb b/app/views/issues/bulk_edit.html.erb
index 13200d726..0263ab916 100644
--- a/app/views/issues/bulk_edit.html.erb
+++ b/app/views/issues/bulk_edit.html.erb
@@ -43,23 +43,18 @@
content_tag('option', l(:label_nobody), :value => 'none') +
principals_options_for_select(@assignables)) %>
</p>
-<% if @project %>
<p>
<label for='issue_category_id'><%= l(:field_category) %></label>
<%= select_tag('issue[category_id]', content_tag('option', l(:label_no_change_option), :value => '') +
content_tag('option', l(:label_none), :value => 'none') +
- options_from_collection_for_select(@project.issue_categories, :id, :name)) %>
+ options_from_collection_for_select(@categories, :id, :name)) %>
</p>
-<% end %>
-<% #TODO: allow editing versions when multiple projects %>
-<% if @project %>
<p>
<label for='issue_fixed_version_id'><%= l(:field_fixed_version) %></label>
<%= select_tag('issue[fixed_version_id]', content_tag('option', l(:label_no_change_option), :value => '') +
content_tag('option', l(:label_none), :value => 'none') +
- version_options_for_select(@project.shared_versions.open.sort)) %>
+ version_options_for_select(@versions.sort)) %>
</p>
-<% end %>
<% @custom_fields.each do |custom_field| %>
<p><label><%= h(custom_field.name) %></label> <%= custom_field_tag_for_bulk_edit('issue', custom_field, @projects) %></p>