Skip to content

Commit

Permalink
Bugfix: of ZMSTrashcan not found (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
uzk-develop authored and drfho committed Jun 28, 2023
1 parent 0813a48 commit c3f3c2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Products/zms/zmsobject.py
Original file line number Diff line number Diff line change
Expand Up @@ -598,12 +598,12 @@ def display_icon(self, REQUEST={}, meta_type=None, key='icon', zpt=True):
name = 'fas fa-exclamation-triangle'
title = self.display_type(meta_type=id)
extra = ''
if id in self.getMetaobjIds( sort=0):
if id in self.getMetaobjIds( sort=0) + ['ZMSTrashcan']:
name = self.evalMetaobjAttr( '%s.%s'%(id, 'icon_clazz'))
if not name:
metaObj = self.getMetaobj(id)
names = {'ZMSResource':'fas fa-asterisk icon-asterisk','ZMSLibrary':'fas fa-flask icon-beaker','ZMSPackage':'fas fa-suitcase icon-suitcase','ZMSRecordSet':'far fa-list-alt icon-list','ZMSReference':'fas fa-link icon-link','ZMSTrashcan':'fas fa-trash'}
name = names.get(metaObj.get('type'), 'fas fa-file-alt icon-file-alt')
name = names.get(id, 'fas fa-file-alt icon-file-alt')
if meta_type is None:
constraints = self.attr('check_constraints')
if isinstance(constraints, dict):
Expand Down

0 comments on commit c3f3c2d

Please sign in to comment.