diff --git a/lib/redmine_dmsf/patches/queries_helper_patch.rb b/lib/redmine_dmsf/patches/queries_helper_patch.rb index b019defd..21fa9e2e 100644 --- a/lib/redmine_dmsf/patches/queries_helper_patch.rb +++ b/lib/redmine_dmsf/patches/queries_helper_patch.rb @@ -160,5 +160,9 @@ module RedmineDmsf end end -RedmineExtensions::PatchManager.register_helper_patch 'QueriesHelper', - 'RedmineDmsf::Patches::QueriesHelperPatch', prepend: true \ No newline at end of file +if Redmine::Plugin.installed?(:easy_extensions) + RedmineExtensions::PatchManager.register_helper_patch 'QueriesHelper', + 'RedmineDmsf::Patches::QueriesHelperPatch', prepend: true +else + DmsfController.send :helper, RedmineDmsf::Patches::QueriesHelperPatch +end \ No newline at end of file