プロジェクト

全般

プロフィール

Vote #77889

完了

Issue subject is not updated when you select another issue in the new "Log time" page

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Time tracking_13
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
13
version_id:
119
issue_org_id:
24041
author_id:
107353
assigned_to_id:
1
comments:
7
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
122
ステータス-->[Closed]

説明

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.


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.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

Admin Redmine さんが3年以上前に更新

  • カテゴリTime tracking_13 にセット
  • 対象バージョン3.4.0_119 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0