Project

General

Profile

0001-workflows-use-everybody-as-empty-label-for-message-c.patch

Frédéric Péters, 05 Jul 2021 10:00 PM

Download (1.7 KB)

View differences:

Subject: [PATCH] workflows: use "everybody" as empty label for message/comment
 actions (#55410)

 wcs/wf/register_comment.py | 3 ++-
 wcs/workflows.py           | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)
wcs/wf/register_comment.py
105 105
                add_element_label=self.get_add_role_label(),
106 106
                element_kwargs={
107 107
                    'render_br': False,
108
                    'options': [(None, '---', None)] + self.get_list_of_roles(include_logged_in_users=False),
108
                    'options': [(None, _('Everybody'), None)]
109
                    + self.get_list_of_roles(include_logged_in_users=False),
109 110
                },
110 111
            )
111 112

  
wcs/workflows.py
3254 3254
                add_element_label=self.get_add_role_label(),
3255 3255
                element_kwargs={
3256 3256
                    'render_br': False,
3257
                    'options': [(None, '---', None)] + self.get_list_of_roles(include_logged_in_users=False),
3257
                    'options': [(None, _('Everybody'), None)]
3258
                    + self.get_list_of_roles(include_logged_in_users=False),
3258 3259
                },
3259 3260
            )
3260 3261

  
3261
-