container might be nil
This commit is contained in:
parent
eb3c41f118
commit
3bc2d40659
@ -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) +
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user