From b29bcc50eb7c84e0ef2cebe529be73821af38844 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1vid=20Hal=C3=A1sz?= Date: Thu, 7 Jun 2018 21:45:55 +0200 Subject: [PATCH] Don't use generic object definition fileicon if no picture present --- app/decorators/generic_object_definition_decorator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/decorators/generic_object_definition_decorator.rb b/app/decorators/generic_object_definition_decorator.rb index 2f92abe261c..e402fac6186 100644 --- a/app/decorators/generic_object_definition_decorator.rb +++ b/app/decorators/generic_object_definition_decorator.rb @@ -4,6 +4,6 @@ def self.fonticon end def fileicon - try(:picture) ? "/pictures/#{picture.basename}" : "100/generic_object_definition.png" + try(:picture) ? "/pictures/#{picture.basename}" : nil end end