Project

General

Profile

Actions

Defect #35455

closed

Require redmine/sort_criteria globally

Added by Felix Schäfer over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Plugin API
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
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.


Files

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

Updated by Felix Schäfer over 3 years 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.

Actions #2

Updated by Go MAEDA over 3 years ago

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

Setting the target version to 5.0.0.

Actions #3

Updated by Go MAEDA over 3 years ago

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

Committed the patch. Thank you.

Actions

Also available in: Atom PDF