From a93da15a8ed049a606fdcadf2515b4aec68c9540 Mon Sep 17 00:00:00 2001 From: "karel.picman@lbcfree.net" Date: Fri, 30 Oct 2020 14:21:50 +0100 Subject: [PATCH] Error after install on fresh 4.1.1 #193 --- lib/redmine_custom_workflows/hooks/hooks.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/redmine_custom_workflows/hooks/hooks.rb b/lib/redmine_custom_workflows/hooks/hooks.rb index cc1d797..b4cd5f8 100644 --- a/lib/redmine_custom_workflows/hooks/hooks.rb +++ b/lib/redmine_custom_workflows/hooks/hooks.rb @@ -25,7 +25,7 @@ module RedmineCustomWorkflows class Hooks < Redmine::Hook::ViewListener def view_layouts_base_html_head(context={}) - return unless context[:controller].class.name.match?(/^(CustomWorkflows|Projects)/) + return unless /^(CustomWorkflows|Projects)/.match?(context[:controller].class.name) "\n".html_safe + stylesheet_link_tag('custom_workflows.css', plugin: :redmine_custom_workflows) end