Skip to content

Commit

Permalink
Manual fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric-Guo committed Feb 26, 2024
1 parent ef66832 commit 3bef52a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/services/ldap/import_users_from_filter_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def get_entries_from_filter(&block)
base: ldap.base_dn,
filter: filter & ldap.default_filter,
attributes: ldap.search_attributes,
&
&block
)
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/open_project/plugins/acts_as_op_engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ def add_api_attribute(on:,
# defined. If no cache key was defined before, the block's result makes up
# the whole cache key.
def add_api_representer_cache_key(*path,
&)
&block)
mod = Module.new
mod.send :define_method, :json_cache_key do
if defined?(super)
Expand Down
2 changes: 1 addition & 1 deletion lib/redmine/menu_manager/menu_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def render_menu_dropdown(label_node, options = {}, &block)
style: 'display:none',
id: options[:drop_down_id],
class: "op-app-menu--dropdown #{options.fetch(:drop_down_class, '')}",
&))
&block))
end
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def search(filter, ldap_con, &block)
base: filter.used_base_dn,
filter: filter.parsed_filter_string,
attributes: ['dn', filter.group_name_attribute],
&
&block
)
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def set_captcha_settings(&block)
if OpenProject::Recaptcha::Configuration.use_hcaptcha?
Recaptcha.with_configuration(verify_url: OpenProject::Recaptcha.hcaptcha_verify_url,
api_server_url: OpenProject::Recaptcha.hcaptcha_api_server_url,
&)
&block)
else
yield
end
Expand Down

0 comments on commit 3bef52a

Please sign in to comment.