Check CRM presence

This commit is contained in:
Karel Pičman 2024-12-23 16:20:25 +01:00
parent 45d41632ae
commit 8cc664f0f7

View File

@ -159,5 +159,6 @@ end
# Apply the patch # Apply the patch
if Redmine::Plugin.installed?('easy_crm') if Redmine::Plugin.installed?('easy_crm')
EasyPatchManager.register_model_patch 'EasyCrmCase', 'RedmineDmsf::Patches::EasyCrmCasePatch' EasyPatchManager.register_model_patch 'EasyCrmCase', 'RedmineDmsf::Patches::EasyCrmCasePatch',
if: -> { EasyPluginLoader.plugin_active? 'easy_crm_2_0' }
end end