Fix bug when a content type has no associated workflow
This commit is contained in:
parent
f59de81ab3
commit
236926a29e
|
@ -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)
|
||||
|
|
Reference in New Issue