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
This commit is contained in:
Marius Balteanu
2022-03-22 07:03:19 +00:00
parent 2e86acfa87
commit 30d91c8503
5 changed files with 55 additions and 13 deletions

View File

@@ -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) {