@@ -356,7 +356,7 class IssuesController < ApplicationController | |||
|
356 | 356 | when 'nullify' |
|
357 | 357 | time_entries.update_all(:issue_id => nil) |
|
358 | 358 | when 'reassign' |
|
359 | reassign_to = @project.issues.find_by_id(params[:reassign_to_id]) | |
|
359 | reassign_to = @project && @project.issues.find_by_id(params[:reassign_to_id]) | |
|
360 | 360 | if reassign_to.nil? |
|
361 | 361 | flash.now[:error] = l(:error_issue_not_found_in_project) |
|
362 | 362 | return |
@@ -7,8 +7,10 | |||
|
7 | 7 | <p> |
|
8 | 8 | <label><%= radio_button_tag 'todo', 'destroy', true %> <%= l(:text_destroy_time_entries) %></label><br /> |
|
9 | 9 | <label><%= radio_button_tag 'todo', 'nullify', false %> <%= l(:text_assign_time_entries_to_project) %></label><br /> |
|
10 | <% if @project %> | |
|
10 | 11 | <label><%= radio_button_tag 'todo', 'reassign', false, :onchange => 'if (this.checked) { $("#reassign_to_id").focus(); }' %> <%= l(:text_reassign_time_entries) %></label> |
|
11 | 12 | <%= text_field_tag 'reassign_to_id', params[:reassign_to_id], :size => 6, :onfocus => '$("#todo_reassign").attr("checked", true);' %> |
|
13 | <% end %> | |
|
12 | 14 | </p> |
|
13 | 15 | </div> |
|
14 | 16 | <%= submit_tag l(:button_apply) %> |
General Comments 0
You need to be logged in to leave comments.
Login now