mirror of
https://github.com/redmine/redmine.git
synced 2026-05-07 04:57:26 +02:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user