Project

General

Profile

Bug #36014

test visibilité vs statut qui n'existe pas

Added by Frédéric Péters 5 days ago.

Status:
Nouveau
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
10 Sep 2019
Due date:
% Done:

0%

Patch proposed:
No
Planning:
No

Description

Dans mon environnement local qui est une jungle,

Exception:
  type = '<type 'exceptions.AttributeError'>', value = ''NoneType' object has no attribute 'get_visibility_restricted_roles''

Stack trace (most recent call first):
  File "/home/fred/src/eo/wcs/wcs/backoffice/management.py", line 2209, in get_extra_context_bar
  2207                     (status_colour, fg_colour))
  2208             r += htmltext('<span>%s %s') % (_('Status:'), formdata.get_status_label())
> 2209             if formdata.get_status().get_visibility_restricted_roles():
  2210                 r += htmltext('<span class="visibility-off" title="%s"></span>') % _(
  2211                         'This status is not visible to users.')

Also available in: Atom PDF