Internal error while opening Settings page #1424
This commit is contained in:
parent
0bc77ca3a7
commit
3174ddfef1
@ -55,6 +55,6 @@ end
|
||||
if Redmine::Plugin.installed?(:easy_extensions)
|
||||
RedmineExtensions::PatchManager.register_patch_to_be_first 'Redmine::Notifiable',
|
||||
'RedmineDmsf::Patches::NotifiablePatch', prepend: true, first: true
|
||||
elsif(!RedmineDmsf::Plugin.an_osolete_plugin_present?)
|
||||
elsif !RedmineDmsf::Plugin.an_osolete_plugin_present?
|
||||
Redmine::Notifiable.prepend RedmineDmsf::Patches::NotifiablePatch
|
||||
end
|
||||
|
||||
@ -54,7 +54,6 @@ module RedmineDmsf
|
||||
end
|
||||
|
||||
# Apply the patch
|
||||
if (RedmineDmsf::Plugin.present?(:redmine_questions) || Redmine::Plugin.installed?(:redmine_contacts) ||
|
||||
Redmine::Plugin.installed?(:redmine_checklists)) && !Redmine::Plugin.installed?(:easy_extensions)
|
||||
if RedmineDmsf::Plugin.an_osolete_plugin_present? && !Redmine::Plugin.installed?(:easy_extensions)
|
||||
Redmine::Notifiable.send :include, RedmineDmsf::Patches::NotifiableRuPatch
|
||||
end
|
||||
|
||||
@ -33,7 +33,7 @@ module RedmineDmsf
|
||||
# present.
|
||||
# It is related especially to plugins made by AplhaNode and RedmineUP.
|
||||
def self.an_osolete_plugin_present?
|
||||
plugins = %w(questions contacts checklists db passwords)
|
||||
plugins = %w(questions contacts checklists db passwords resources)
|
||||
plugins.each do|plugin|
|
||||
if Plugin.present?("redmine_#{plugin}")
|
||||
return true
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user