mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-05 23:21:31 +00:00
Handle default assignee when changing category (#15919).
git-svn-id: http://svn.redmine.org/redmine/trunk@17389 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
ce6f05509c
commit
5f55268756
@ -3,7 +3,5 @@ replaceIssueFormWith('<%= escape_javascript(render :partial => 'form') %>');
|
||||
<% when "issue_project_id" %>
|
||||
$("#watchers_form_container").html('<%= escape_javascript(render :partial => 'issues/watchers_form') %>');
|
||||
<% when "issue_category_id" %>
|
||||
<% if @issue.assigned_to_id.blank? %>
|
||||
$('#issue_assigned_to_id').val('<%= @issue.category.try(:assigned_to_id) %>');
|
||||
<% end %>
|
||||
$('#issue_assigned_to_id').find('option').first().html('<%= escape_javascript(@issue.category.try(:assigned_to).try(:name)).presence || ' '.html_safe %>');
|
||||
<% end %>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user