]> source.dussan.org Git - redmine.git/commitdiff
Fix that newly added attachments are lost when the status of the ticket is changed...
authorMarius Balteanu <marius.balteanu@zitec.com>
Mon, 16 May 2022 20:01:02 +0000 (20:01 +0000)
committerMarius Balteanu <marius.balteanu@zitec.com>
Mon, 16 May 2022 20:01:02 +0000 (20:01 +0000)
git-svn-id: https://svn.redmine.org/redmine/trunk@21580 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/issues/edit.js.erb

index 9ccc78ad241f950f6980880ed2eacc8c11ad4d9e..e953368243f7fe6109af5a401241ab29524b6de7 100644 (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 %>
\ No newline at end of file