Defect #24041
closed
Issue subject is not updated when you select another issue in the new "Log time" page
Added by Marius BĂLTEANU about 8 years ago.
Updated over 7 years ago.
Description
To reproduce:
- Open an issue
- Click "Log time"
- Observe that the issue subject is displayed next to issue (issue_2.png)
- Select another issue in the issue field
- Observe that the issue subject is still the same (issue_3.png) even if I selected another issue
The attached patch fixes this issue.
Files
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.
- Target version set to 3.2.5
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.
<% 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 %>
- Status changed from New to Resolved
- Assignee set to Jean-Philippe Lang
- Resolution set to Fixed
This should be fixed on both new and edit forms by r15951, thanks.
- Status changed from Resolved to Closed
- Target version changed from 3.2.5 to 3.4.0
Some routes were changed, setting target to next major release.
- Subject changed from Issue subject is not updated when you select another issue in the new "Log time" page to Issue subject is not updated when you select another issue in the new "Log time" page
Also available in: Atom
PDF