Project

General

Profile

Patch #5456 » add_fixed_version_to_move_issue.patch

yusuke kokubo, 2010-05-06 11:25

View differences:

controllers/issues_controller.rb (??ƃR?s?[)
259 259
      @issues.each do |issue|
260 260
        issue.reload
261 261
        changed_attributes = {}
262
        [:assigned_to_id, :status_id, :start_date, :due_date].each do |valid_attribute|
262
        [:assigned_to_id, :status_id, :start_date, :due_date, :fixed_version_id].each do |valid_attribute|
263 263
          unless params[valid_attribute].blank?
264 264
            changed_attributes[valid_attribute] = (params[valid_attribute] == 'none' ? nil : params[valid_attribute])
265 265
          end 
views/issues/move.rhtml (??ƃR?s?[)
29 29
</p>
30 30

  
31 31
<p>
32
  <label><%= l(:field_fixed_version) %></label>
33
  <%= select_tag('fixed_version_id', content_tag('option', l(:label_no_change_option), :value => '') +
34
                                   content_tag('option', l(:label_nobody), :value => 'none') +
35
                                   options_from_collection_for_select(@target_project.shared_versions.open, :id, :name)) %>
36
</p>
37

  
38
<p>
32 39
  <label><%= l(:field_status) %></label>
33 40
  <%= select_tag('status_id', "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(@available_statuses, :id, :name)) %>
34 41
</p>
    (1-1/1)