Project

General

Profile

Actions

Patch #24939

open

Changing plugin loading order

Added by Lucas Arnaud about 7 years ago. Updated over 6 years ago.

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

0%

Estimated time:

Description

Hi,

I have one plugin that depends on another, and I needed to specify the order plugins are loaded so the classes and migrations are loaded in the proper order, but the dependent plugin is loaded first because of alphabetical order of their names.

I made this patch on lib/redmine/plugin.rb so I can determine plugins loading order by setting its priorities on a Hash in the file config/additional_environment.rb.

This sorting relies that plugin directory name is equals to its id.

Regards,


Files


Related issues

Related to Redmine - Feature #23131: Plugin load order defined by inter-plugin dependenciesReopened

Actions
Actions

Also available in: Atom PDF