Defect #35455

Require redmine/sort_criteria globally

Added by Felix Schäfer about 1 month ago. Updated about 1 month ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Go MAEDA% Done:

0%

Category:Plugin API
Target version:5.0.0
Resolution:Fixed Affected version:

Description

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.

35455.patch Magnifier (841 Bytes) Felix Schäfer, 2021-06-24 17:07

Associated revisions

Revision 21050
Added by Go MAEDA about 1 month ago

Require redmine/sort_criteria globally (#35455).

Patch by Felix Schäfer.

History

#1 Updated by Felix Schäfer about 1 month ago

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.

#2 Updated by Go MAEDA about 1 month ago

  • Category set to Plugin API
  • Target version set to 5.0.0

Setting the target version to 5.0.0.

#3 Updated by Go MAEDA about 1 month ago

  • Status changed from New to Closed
  • Assignee set to Go MAEDA
  • Resolution set to Fixed

Committed the patch. Thank you.

Also available in: Atom PDF