Merge r24497 from trunk to 6.0-stable (#43869).

git-svn-id: https://svn.redmine.org/redmine/branches/6.0-stable@24499 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Marius Balteanu
2026-03-16 09:17:11 +00:00
parent dba20e0085
commit 890e7813d4

View File

@@ -4,7 +4,10 @@ replaceIssueFormWith('<%= escape_javascript(render :partial => 'form') %>');
$("#watchers_form_container").html(
'<%= escape_javascript(render :partial => 'issues/watchers_form') %>');
<% when "issue_category_id" %>
$('#issue_assigned_to_id').find('option').first().html(
'<%= escape_javascript(
@issue.category.try(:assigned_to).try(:name)).presence || '&nbsp;'.html_safe %>');
$('#issue_assigned_to_id').find('option').first()
// Browsers prefer option[label] over inner text, so remove the blank label.
.removeAttr('label')
.html(
'<%= escape_javascript(
@issue.category.try(:assigned_to).try(:name)).presence || '&nbsp;'.html_safe %>');
<% end %>