Projet

Général

Profil

Bug #9279

ne pas planter la barre latérale de contexte quand l'usager a été supprimé

Ajouté par Frédéric Péters il y a plus de 8 ans. Mis à jour il y a environ 8 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Version cible:
Début:
09 décembre 2015
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:

Description

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

Stack trace (most recent call first):
  File "/usr/lib/python2.7/dist-packages/wcs/backoffice/management.py", line 1616, in get_extra_context_bar
  1614             r += htmltext('<div class="extra-context">')
  1615             r += htmltext('<h3>%s</h3>') % _('Associated User')
> 1616             r += htmltext('<p>%s</p>') % formdata.get_user().display_name
  1617             r += htmltext('</div>')
  1618

Fichiers

Révisions associées

Révision 48189dad (diff)
Ajouté par Frédéric Péters il y a plus de 8 ans

backoffice: protect sidebar against removed users (#9279)

Historique

#1

Mis à jour par Frédéric Péters il y a plus de 8 ans

#2

Mis à jour par Thomas Noël il y a plus de 8 ans

Sur d'autres endroits on affiche «Unknown User» ...? (quoique, ceci dit, non, pas quand y'a plus du tout d'utilisateur).

Ack, donc

#3

Mis à jour par Frédéric Péters il y a plus de 8 ans

  • Statut changé de En cours à Résolu (à déployer)
commit 48189dad08a202156770a9cd5fd3e78b43a05997
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Wed Dec 9 17:47:15 2015 +0100

    backoffice: protect sidebar against removed users (#9279)
#4

Mis à jour par Frédéric Péters il y a environ 8 ans

  • Version cible mis à v1.25
#5

Mis à jour par Frédéric Péters il y a environ 8 ans

  • Statut changé de Résolu (à déployer) à Fermé

Formats disponibles : Atom PDF