Actions
Defect #24041
closedIssue subject is not updated when you select another issue in the new "Log time" page
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Fixed
Affected version:
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 by Marius BĂLTEANU about 8 years ago
Updated the patch to use the actual condition
Updated by Marius BĂLTEANU about 8 years ago
I've found a better solution which use the existing link_to_issue method. Added some assertions too.
Updated by Marius BĂLTEANU about 8 years ago
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 %>
Updated by Jean-Philippe Lang about 8 years ago
- 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.
Updated by Jean-Philippe Lang almost 8 years ago
- 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.
Updated by Mischa The Evil over 7 years ago
- 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
Actions