0001-backoffice-don-t-try-displaying-status-visibility-fo.patch
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 |
- |