This commit is contained in:
Karel Pičman 2024-05-14 13:02:49 +02:00
parent 0b255a9fc1
commit d9b9cb05f5
6 changed files with 9 additions and 19 deletions

View File

@ -48,9 +48,7 @@ end
# Apply the patch
if Redmine::Plugin.installed?('easy_extensions')
EasyPatchManager.register_patch_to_be_first 'Redmine::Acts::Attachable::InstanceMethods',
'RedmineDmsf::Patches::AccessControlPatch',
prepend: true,
first: true
'RedmineDmsf::Patches::AccessControlPatch', prepend: true, first: true
else
Redmine::AccessControl.prepend RedmineDmsf::Patches::AccessControlPatch
end

View File

@ -37,9 +37,7 @@ end
# Apply the patch
if Redmine::Plugin.installed?('easy_extensions')
EasyPatchManager.register_patch_to_be_first 'Redmine::Acts::Attachable::InstanceMethods',
'RedmineDmsf::Patches::AttachablePatch',
prepend: true,
first: true
'RedmineDmsf::Patches::AttachablePatch', prepend: true, first: true
else
Redmine::Acts::Attachable.prepend RedmineDmsf::Patches::AttachablePatch
end

View File

@ -43,10 +43,8 @@ end
# Apply the patch
if Redmine::Plugin.installed?('easy_extensions')
EasyPatchManager.register_patch_to_be_first 'Redmine::Export::PDF::ITCPDF',
'RedmineDmsf::Patches::PdfPatch',
prepend: true,
first: true
EasyPatchManager.register_patch_to_be_first 'Redmine::Export::PDF::ITCPDF', 'RedmineDmsf::Patches::PdfPatch',
prepend: true, first: true
else
Redmine::Export::PDF::ITCPDF.prepend RedmineDmsf::Patches::PdfPatch
end

View File

@ -40,9 +40,8 @@ end
# Apply the patch
if Redmine::Plugin.installed?('easy_extensions')
EasyPatchManager.register_controller_patch 'QueriesController',
'RedmineDmsf::Patches::QueriesControllerPatch',
prepend: true
EasyPatchManager.register_controller_patch 'QueriesController', 'RedmineDmsf::Patches::QueriesControllerPatch',
prepend: true
else
QueriesController.prepend RedmineDmsf::Patches::QueriesControllerPatch
end

View File

@ -39,7 +39,6 @@ end
# Apply the patch
if Redmine::Plugin.installed?(:easy_extensions)
EasyPatchManager.register_controller_patch 'SearchController',
'RedmineDmsf::Patches::SearchControllerPatch',
prepend: true
EasyPatchManager.register_controller_patch 'SearchController', 'RedmineDmsf::Patches::SearchControllerPatch',
prepend: true
end

View File

@ -48,9 +48,7 @@ end
# Apply the patch
if Redmine::Plugin.installed?('easy_extensions')
EasyPatchManager.register_patch_to_be_first 'Redmine::Acts::Attachable::InstanceMethods',
'RedmineDmsf::Patches::SearchPatch',
prepend: true,
first: true
'RedmineDmsf::Patches::SearchPatch', prepend: true, first: true
else
Redmine::Search.prepend RedmineDmsf::Patches::SearchPatch
end