Merge master to devel

This commit is contained in:
Karel Picman 2018-03-13 10:42:18 +01:00
commit 1b7cf5a0f9
3 changed files with 12 additions and 7 deletions

View File

@ -73,7 +73,9 @@ module RedmineDmsf
end
def view_issues_show_thumbnails(context={})
show_thumbnails(context[:container], context[:controller])
unless context[:options][:only_mails].present?
show_thumbnails(context[:container], context[:controller])
end
end
def view_issues_dms_thumbnails(context={})

View File

@ -177,9 +177,10 @@ module RedmineDmsf
end
end
# Apply patch
Rails.configuration.to_prepare do
unless EasyCrmCase.included_modules.include?(RedmineDmsf::Patches::EasyCrmCasePatch)
EasyCrmCase.send(:include, RedmineDmsf::Patches::EasyCrmCasePatch)
if Redmine::Plugin.installed?(:easy_crm)
Rails.configuration.to_prepare do
unless EasyCrmCase.included_modules.include?(RedmineDmsf::Patches::EasyCrmCasePatch)
EasyCrmCase.send(:include, RedmineDmsf::Patches::EasyCrmCasePatch)
end
end
end
end

View File

@ -112,4 +112,6 @@ module RedmineDmsf
end
end
EasyCrmCasesController.send(:prepend, RedmineDmsf::Patches::EasyCrmCasesControllerPatch)
if Redmine::Plugin.installed?(:easy_crm)
EasyCrmCasesController.send(:prepend, RedmineDmsf::Patches::EasyCrmCasesControllerPatch)
end