Fix bug when a content type has no associated workflow

This commit is contained in:
Nicolas Demonte 2019-03-05 15:30:27 +01:00
parent 45ba66184e
commit d714d90717
1 changed files with 1 additions and 1 deletions

View File

@ -217,7 +217,7 @@ class DeleteColumn(IconColumn, LinkColumn):
return u""
obj = get_object(self.request, item)
if plone.api.content.get_state(obj) == 'trashed':
if plone.api.content.get_state(obj, None) == 'trashed':
return '<span>DEL</span>'
return super(DeleteColumn, self).renderCell(item)