0002-Set-default_assigned_to_id-in-project.patch

Mizuki ISHIKAWA, 2017-10-31 07:08

Download (1.06 KB)

View differences:

app/views/issues/new.js.erb
2 2
<% case params[:form_update_triggered_by] %>
3 3
<% when "issue_project_id" %>
4 4
  $("#watchers_form_container").html('<%= escape_javascript(render :partial => 'issues/watchers_form') %>');
5
  <% if @issue.assigned_to_id.blank? && @issue.new_record? %>
6
    $('#issue_assigned_to_id').val('<%= @issue.project.try(:default_assigned_to_id) %>');
7
  <% end %>
5 8
<% when "issue_category_id" %>
6 9
  <% if  @issue.assigned_to_id.blank? %>
7 10
    $('#issue_assigned_to_id').val('<%= @issue.category.try(:assigned_to_id) %>');
8
-