Projet

Général

Profil

0001-backoffice-don-t-try-displaying-status-visibility-fo.patch

Frédéric Péters, 16 octobre 2019 17:21

Télécharger (1,24 ko)

Voir les différences:

Subject: [PATCH] backoffice: don't try displaying status visibility for
 missing status (#37005)

 wcs/backoffice/management.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
wcs/backoffice/management.py
2221 2221
            r += htmltext('<p class="current-status"><span class="item" style="background: #%s; color: %s;"></span>' %
2222 2222
                    (status_colour, fg_colour))
2223 2223
            r += htmltext('<span>%s %s') % (_('Status:'), formdata.get_status_label())
2224
            if formdata.get_status().get_visibility_restricted_roles():
2224
            status = formdata.get_status()
2225
            if status and status.get_visibility_restricted_roles():
2225 2226
                r += htmltext('<span class="visibility-off" title="%s"></span>') % _(
2226 2227
                        'This status is not visible to users.')
2227 2228
            r += htmltext('</span></p>')
2228
-