プロジェクト

全般

プロフィール

Vote #81504

完了

Require redmine/sort_criteria globally

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

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

0%

予定工数:
category_id:
20
version_id:
155
issue_org_id:
35455
author_id:
3866
assigned_to_id:
332
comments:
3
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

We currently have an issue with @Redmine::SortCriteria@ being loaded only when @Query@ gets loaded.

We use and save @Redmine::SortCriteria@ in a plugin, which leads to errors when we try to load objects from the DB referencing those although @Query@ has not been loaded yet. This leads to errors in our Redmine until someone loads a page with a query on the corresponding Redmine instance serving the request.


journals

The attached patch moves the @require 'redmine/sort_criteria'@ to the global requires in @lib/redmine.rb@ instead of loading it in-place in the @app/models/query.rb@.
--------------------------------------------------------------------------------
Setting the target version to 5.0.0.
--------------------------------------------------------------------------------
Committed the patch. Thank you.
--------------------------------------------------------------------------------

Admin Redmine さんが約4年前に更新

  • カテゴリPlugin API_20 にセット
  • 対象バージョン5.0.0_155 にセット

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

いいね!0
いいね!0