mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
Allow calling hook for external link capture
This commit is contained in:
@@ -32,6 +32,8 @@ module Admin
|
||||
module Settings
|
||||
class ExternalLinksSettingsForm < ApplicationForm
|
||||
settings_form do |sf|
|
||||
helpers.call_hook(:component_admin_settings_external_redirect, form: sf)
|
||||
|
||||
sf.check_box(
|
||||
name: :capture_external_links,
|
||||
caption: I18n.t(:setting_capture_external_links_text)
|
||||
|
||||
@@ -1100,7 +1100,7 @@ RSpec.describe Settings::Definition, :settings_reset do
|
||||
context "when the override block returns a callable" do
|
||||
before do
|
||||
described_class.add_value_override(:bogus_override_test) do
|
||||
-> { nil }
|
||||
-> {}
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user