プロジェクト

全般

プロフィール

Vote #75918

完了

TimeEntry acts_as_activity_provider scope should joins(:project)

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

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

0%

予定工数:
category_id:
30
version_id:
80
issue_org_id:
18818
author_id:
111145
assigned_to_id:
1
comments:
3
status_id:
5
tracker_id:
3
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

TimeEntry acts_as_activity_provider scope should join project, not just preload it


journals

--------------------------------------------------------------------------------
Committed in r13971, thanks.
--------------------------------------------------------------------------------
For the record:

:scope => preload(:project) was introduced by r13482 (#14534).

<pre><code class="diff">
=== (+11,-5) app/models/time_entry.rb ===
@@ -35,7 +35,7 @@

acts_as_activity_provider :timestamp => "#{table_name}.created_on",
:author_key => :user_id,
- :find_options => {:include => :project}
+ :scope => preload(:project)

</code></pre>

So target version:3.0.0 is no need.
But version:3.0.0 was already released.
--------------------------------------------------------------------------------

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

  • カテゴリCode cleanup/refactoring_30 にセット
  • 対象バージョン3.0.0_80 にセット

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

いいね!0
いいね!0