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

Fix tag_helper in my controller

Oliver Günther7bacd8b81422
diff --git a/app/controllers/my_controller.rb b/app/controllers/my_controller.rb
index c05339aa418..5801cf280ed 100644
--- a/app/controllers/my_controller.rb
+++ b/app/controllers/my_controller.rb
@@ -31,6 +31,7 @@
class MyController < ApplicationController
include Concerns::PasswordConfirmation
include Concerns::UserPasswordChange
+ include ActionView::Helpers::TagHelper
layout 'my'
helper_method :gon
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index bc45edbd66e..271307ce1a6 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -146,7 +146,7 @@ module ApplicationHelper
def join_flash_messages(messages)
if messages.respond_to?(:join)
- safe_join(messages, '<br />')
+ safe_join(messages, '<br />'.html_safe)
else
messages
end
diff --git a/spec/support/edit_fields/project_status_field.rb b/spec/support/edit_fields/project_status_field.rb
index 928c83980dd..150fd601daf 100644
--- a/spec/support/edit_fields/project_status_field.rb
+++ b/spec/support/edit_fields/project_status_field.rb
@@ -1,3 +1,4 @@
+require 'support/components/ng_select_autocomplete_helpers'
require_relative './edit_field'
class ProjectStatusField < EditField