Vote #81504
完了Require redmine/sort_criteria globally
0%
説明
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.
--------------------------------------------------------------------------------