diff options
author | Marius Balteanu <marius.balteanu@zitec.com> | 2022-05-16 20:01:02 +0000 |
---|---|---|
committer | Marius Balteanu <marius.balteanu@zitec.com> | 2022-05-16 20:01:02 +0000 |
commit | 345c1c978c67a6872b1562a4539aa684676b039d (patch) | |
tree | 497240009118ed4c60b7a2e2a2dc058f36fbc2ed /app/views | |
parent | c3a08d99f5e2339aac159a46fc515108cc09d213 (diff) | |
download | redmine-345c1c978c67a6872b1562a4539aa684676b039d.tar.gz redmine-345c1c978c67a6872b1562a4539aa684676b039d.zip |
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
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/issues/edit.js.erb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/views/issues/edit.js.erb b/app/views/issues/edit.js.erb index 9ccc78ad2..e95336824 100644 --- a/app/views/issues/edit.js.erb +++ b/app/views/issues/edit.js.erb @@ -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 |