Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

safe params call to turn error helper env agnostic

ulferts62edcb3bc8fd
diff --git a/app/helpers/open_project_error_helper.rb b/app/helpers/open_project_error_helper.rb
index 74a0c878b54..5b5a47a08c3 100644
--- a/app/helpers/open_project_error_helper.rb
+++ b/app/helpers/open_project_error_helper.rb
@@ -27,7 +27,7 @@ module OpenProjectErrorHelper
def op_logging_context
{
current_user: User.current,
- params: params,
+ params: try(:params),
request: try(:request),
session: try(:session),
env: try(:env)