1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-01-31 19:47:14 +00:00

Fix that newly added attachments are lost when the status of the ticket is changed by hiding/showing the fields without removing them (#37053).

git-svn-id: https://svn.redmine.org/redmine/trunk@21580 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Marius Balteanu 2022-05-16 20:01:02 +00:00
parent c3a08d99f5
commit 345c1c978c

View File

@ -4,3 +4,11 @@ replaceIssueFormWith('<%= escape_javascript(render :partial => 'form') %>');
<% else %>
$('#log_time').hide();
<% end %>
<% if @issue.notes_addable? %>
$('#add_notes').show();
$('#add_attachments').show();
<% else %>
$('#add_notes').hide();
$('#add_attachments').hide();
<% end %>