プロジェクト

全般

プロフィール

Vote #74336

完了

Redmine loses filters after deleting a spent time

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

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

0%

予定工数:
category_id:
13
version_id:
123
issue_org_id:
14817
author_id:
79699
assigned_to_id:
1
comments:
11
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
71
ステータス-->[Closed]

説明

When you add filters in the spent time "Details" view, and then delete an entry, the refresh loses the filters you had.

Steps to reproduce:

  • Add a filter
  • Delete a spent time

Expected result:

Refresh with the filter you had

Actual result:

Refresh with the default page


journals

This issue reproduces also on the latest trunk version.
--------------------------------------------------------------------------------
I think that this issue is generated by another issue: time spent filters are not stored in the session.

To reproduce:

# Go to the spent time tab
# Create a filter
# Navigate to issues tab
# Return to the spent time tab
# Observe that the filters are reseted.
--------------------------------------------------------------------------------
The below change seems to fix the issue. I'm going to make a patch with tests for this.

<pre>
diff --git a/app/controllers/timelog_controller.rb b/app/controllers/timelog_controller.rb
old mode 100644
new mode 100755
index 6c0cd3e..2edf556
--- a/app/controllers/timelog_controller.rb
+++ b/app/controllers/timelog_controller.rb
@@ -281,6 +281,6 @@ private
end

def retrieve_time_entry_query
- retrieve_query(TimeEntryQuery, false)
+ retrieve_query(TimeEntryQuery, true)
end
end
</pre>
--------------------------------------------------------------------------------
Attached is a patch that fixes the issue reported initially in this ticket and the issue from note-2. Please let me know if a should open a new ticket for the issue from note-2.
--------------------------------------------------------------------------------
Thank you for the patch, it works fine for me and passed all tests.
In addition, the patch also fixes #13622.

Setting target version to 3.3.2.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Marius BALTEANU wrote:
> Attached is a patch that fixes the issue reported initially in this ticket and the issue from note-2. Please let me know if a should open a new ticket for the issue from note-2.

Storing the filters in session is a different behaviour, please open another ticket and we'll see if this is desirable, thanks.
I've have the reported issue in r16056 without changing this behaviour.
--------------------------------------------------------------------------------
Jean-Philippe Lang wrote:
> Marius BALTEANU wrote:
> > Attached is a patch that fixes the issue reported initially in this ticket and the issue from note-2. Please let me know if a should open a new ticket for the issue from note-2.
>
> Storing the filters in session is a different behaviour, please open another ticket and we'll see if this is desirable, thanks.
> I've have the reported issue in r16056 without changing this behaviour.

Here is the new ticket #24581.
--------------------------------------------------------------------------------

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

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

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


related_issues

relates,Closed,13622,"Clear" button in Spent Time Report tab also clears global filters
relates,Closed,17302,Forwarding from issues time entries page to project time entries page
duplicates,Closed,9016,displayed page after deleting time_entry

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

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

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

いいね!0
いいね!0