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 f59de81ab3
commit 236926a29e
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)