Vote #77889
完了Issue subject is not updated when you select another issue in the new "Log time" page
0%
説明
journals
Updated the patch to use the actual condition
--------------------------------------------------------------------------------
I've found a better solution which use the existing link_to_issue method. Added some assertions too.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
The same issue reproduces also in the edit time entry page where the call to "time_entries/new.js" is not made. The JS block which makes the call is rendered only for new records and it is not enough to remove the if statement.
<pre><code class="erb">
<% if @time_entry.new_record? %>
$(document).ready(function(){
$('#time_entry_project_id, #time_entry_issue_id').change(function(){
$.ajax({
url: '<%= escape_javascript new_time_entry_path(:format => 'js') %>',
type: 'post',
data: $('#new_time_entry').serialize()
});
});
});
<% end %>
</code></pre>
--------------------------------------------------------------------------------
This should be fixed on both new and edit forms by r15951, thanks.
--------------------------------------------------------------------------------
Some routes were changed, setting target to next major release.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------