container might be nil

This commit is contained in:
karel.picman@lbcfree.net 2020-05-08 07:18:22 +02:00
parent eb3c41f118
commit 3bc2d40659
2 changed files with 1 additions and 2 deletions

View File

@ -24,7 +24,6 @@ module RedmineDmsf
class DmsfViewListener < Redmine::Hook::ViewListener
# TODO: *.css are twice there
def view_layouts_base_html_head(context={})
return unless /^(Dmsf|Projects)/.match?(context[:controller].class.name)
meta = "\n".html_safe + stylesheet_link_tag('redmine_dmsf.css', plugin: :redmine_dmsf) +

View File

@ -121,7 +121,7 @@ module RedmineDmsf
unless defined?(EasyExtensions)
true
end
container.project && container.project.module_enabled?(:documents)
container && container.project && container.project.module_enabled?(:documents)
end
def get_links(container)