Projet

Général

Profil

Bug #40157

crash "unorderable types" sur une page de catégorie

Ajouté par Thomas Noël il y a environ 4 ans. Mis à jour il y a environ 4 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Version cible:
-
Début:
24 février 2020
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

Sur l'affichage des demandes dans une page de catégorie :

Exception:
  type = '<class 'TypeError'>', value = 'unorderable types: NoneType() < time.struct_time()'

Stack trace (most recent call first):
  File "/usr/lib/python3/dist-packages/wcs/forms/root.py", line 1416, in _q_index
  1414                 user_forms.extend(get_user_forms(formdef))
  1415                 user_forms = [x for x in user_forms if x.formdef.is_user_allowed_read(user, x)]
> 1416             user_forms.sort(key=lambda x: (x.receipt_time,))
  1417
  1418         if self.category:

(et pourtant il y avait eu #36515 = 929271ea94197b9c78f8379cf55681081279e4f7)


Fichiers

Révisions associées

Révision 4dd829eb (diff)
Ajouté par Frédéric Péters il y a environ 4 ans

misc: allow sorting forms without receipt time (#40157)

Historique

#1

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

  • Assigné à mis à Frédéric Péters
#2

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

C'est comme #39849 côté auquotidien, en fait.

#3

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

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

Frédéric Péters a écrit :

C'est comme #39849 côté auquotidien, en fait.

#39629 ; ok !

#4

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

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

Maudit copié/collé, oui c'est bien ce ticket là.

commit 4dd829ebee11130a7904dfb827897e05bcbdc72a
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Tue Feb 25 09:41:50 2020 +0100

    misc: allow sorting forms without receipt time (#40157)
#5

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

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

Formats disponibles : Atom PDF