Closed potsky closed 2 years ago
Is this really correct? Since the code says respond_to?(:directory) ?
, shouldn't that mean that directory
is always set?
More specifically, what changed in 2.4?
Found what changed: Default plugin directory is now set after plugin init so that plugins can set custom directory names (r11766 - https://github.com/edavis10/redmine/commit/e771d68214e7a83b7a4986e91faf5db15a04374a).
In general, this line should not be necessary any more since Redmine will now automatically load the I18N files (/lib/redmine/plugin.rb Line 82)
I will test some time next week.
ok !
Also relevant for 2.5.0
Are there any news on this topic?
+1
I had this same issue trying to install the plugin with Redmine 2.5.1, and this patch resolved it.
Many thanks! Works like a charm on Redmine 2.5.2.
Migrating to Redmine 2.4.2 make the plugin crash on update:
I have changed the directory variable with the current path of the file.