Projet

Général

Profil

0001-backoffice-adapt-inspect-page-to-note-when-a-functio.patch

Frédéric Péters, 07 juillet 2022 06:51

Télécharger (1,34 ko)

Voir les différences:

Subject: [PATCH] backoffice: adapt inspect page to note when a function is the
 default (#55632)

 wcs/backoffice/management.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
wcs/backoffice/management.py
3711 3711
                            acting_role = get_publisher().user_class.get(acting_role_id.split(':')[1])
3712 3712
                        else:
3713 3713
                            acting_role = get_publisher().role_class.get(acting_role_id)
3714
                        acting_role_names.append(acting_role.name)
3714
                        if key in (self.filled.workflow_roles or {}):
3715
                            acting_role_names.append(acting_role.name)
3716
                        else:
3717
                            acting_role_names.append('%s (%s)' % (acting_role.name, _('default')))
3715 3718
                    except KeyError:
3716 3719
                        acting_role_names.append('%s (%s)' % (acting_role_id, _('deleted')))
3717 3720
                if acting_role_names:
3718
-