Projet

Général

Profil

Bug #43081

local variable 'displayed_criterias' referenced before assignment sur page de stats globales

Ajouté par Frédéric Péters il y a presque 4 ans. Mis à jour il y a presque 4 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Version cible:
-
Début:
19 mai 2020
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

Exception:
  type = '<class 'UnboundLocalError'>', value = 'local variable 'displayed_criterias' referenced before assignment'

Stack trace (most recent call first):
  File "/usr/lib/python3/dist-packages/wcs/backoffice/management.py", line 2288, in stats
  2286
  2287         r += htmltext('<div id="statistics">')
> 2288         if displayed_criterias:
  2289             r += htmltext('<div class="criterias bo-block">')
  2290             r += htmltext('<h2>%s</h2>') % _('Filters')

  locals:
     applied_filters = None
     criterias = []
...

Fichiers

Révisions associées

Révision 7d03a085 (diff)
Ajouté par Frédéric Péters il y a presque 4 ans

backoffice: fix display of stats filtered on invalid status (#43081)

Historique

#1

Mis à jour par Frédéric Péters il y a presque 4 ans

C'est la suite de #42830.

#2

Mis à jour par Thomas Noël il y a presque 4 ans

  • Statut changé de Solution proposée à Solution validée

Arf, oui, raté cette évidence à la relecture de #42830...

#3

Mis à jour par Frédéric Péters il y a presque 4 ans

  • Statut changé de Solution validée à Résolu (à déployer)
commit 7d03a0859edbb53dd141e5c227a24960dcfaec78
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Tue May 19 15:02:38 2020 +0200

    backoffice: fix display of stats filtered on invalid status (#43081)
#5

Mis à jour par Frédéric Péters il y a presque 4 ans

  • Statut changé de Résolu (à déployer) à Solution déployée

Formats disponibles : Atom PDF