diff options
author | Marius Balteanu <marius.balteanu@zitec.com> | 2022-03-22 07:03:19 +0000 |
---|---|---|
committer | Marius Balteanu <marius.balteanu@zitec.com> | 2022-03-22 07:03:19 +0000 |
commit | 30d91c85036132b3524845fee4746ae014c293d4 (patch) | |
tree | b8149e62d1826d031ba7309d149b082b8fd882f1 /public | |
parent | 2e86acfa8742651c47fe5719c6d458299a428003 (diff) | |
download | redmine-30d91c85036132b3524845fee4746ae014c293d4.tar.gz redmine-30d91c85036132b3524845fee4746ae014c293d4.zip |
Fix that Log time and/or Add notes sections from issue form page do not show or hide dynamically based on user permission (#34641).
git-svn-id: https://svn.redmine.org/redmine/trunk@21495 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'public')
-rw-r--r-- | public/javascripts/application.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/public/javascripts/application.js b/public/javascripts/application.js index 91da19229..efff38da7 100644 --- a/public/javascripts/application.js +++ b/public/javascripts/application.js @@ -622,8 +622,13 @@ function replaceIssueFormWith(html){ replacement.find('#'+object_id).val($(this).val()); } }); - $('#all_attributes').empty(); - $('#all_attributes').prepend(replacement); + + if ($('form.new_issue').length > 0) { + $('#all_attributes').empty(); + $('#all_attributes').prepend(replacement); + } else { + $('#issue-form').replaceWith(replacement); + } } function updateBulkEditFrom(url) { |