From 8cc664f0f716ad51619a4368a18a532fffa6683e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Pi=C4=8Dman?= Date: Mon, 23 Dec 2024 16:20:25 +0100 Subject: [PATCH] Check CRM presence --- patches/easy_crm_case_patch.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/patches/easy_crm_case_patch.rb b/patches/easy_crm_case_patch.rb index 299d7be1..15b7595f 100644 --- a/patches/easy_crm_case_patch.rb +++ b/patches/easy_crm_case_patch.rb @@ -159,5 +159,6 @@ def journalize_dmsf_file(dmsf_file, added_or_removed) # Apply the patch 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