]> source.dussan.org Git - redmine.git/commitdiff
Revert changes made to issue form update in r21495 (#37053).
authorMarius Balteanu <marius.balteanu@zitec.com>
Mon, 16 May 2022 19:38:11 +0000 (19:38 +0000)
committerMarius Balteanu <marius.balteanu@zitec.com>
Mon, 16 May 2022 19:38:11 +0000 (19:38 +0000)
git-svn-id: https://svn.redmine.org/redmine/trunk@21578 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/issues/edit.js.erb
public/javascripts/application.js

index ed8fc3ca832a02b8741db4a6e04878b24d2ff8dd..9ccc78ad241f950f6980880ed2eacc8c11ad4d9e 100644 (file)
@@ -1 +1,6 @@
-replaceIssueFormWith('<%= escape_javascript(render :partial => 'edit') %>');
+replaceIssueFormWith('<%= escape_javascript(render :partial => 'form') %>');
+<% if User.current.allowed_to?(:log_time, @issue.project) %>
+  $('#log_time').show();
+<% else %>
+  $('#log_time').hide();
+<% end %>
index efff38da7dcdbf13ec590683eedb511fafbcd743..91da192290589e7243de65d5019a0888ff78fdbc 100644 (file)
@@ -622,13 +622,8 @@ function replaceIssueFormWith(html){
       replacement.find('#'+object_id).val($(this).val());
     }
   });
-
-  if ($('form.new_issue').length > 0) {
-    $('#all_attributes').empty();
-    $('#all_attributes').prepend(replacement);
-  } else {
-    $('#issue-form').replaceWith(replacement);
-  }
+  $('#all_attributes').empty();
+  $('#all_attributes').prepend(replacement);
 }
 
 function updateBulkEditFrom(url) {