Projet

Général

Profil

Development #32415

retourner une liste vide sur /api/forms quand il n'y a aucune démarche encore définie

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

Statut:
Fermé
Priorité:
Normal
Assigné à:
Version cible:
-
Début:
17 avril 2019
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

Parce que sinon, paf sur le wcs_all_forms qui n'existe pas. C'est quelque chose qui a déjà été fait sur /api/user/{forms,drafts} dans #28132.


Fichiers

Révisions associées

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

api: don't crash /api/forms when there are no formdefs (#32415)

Historique

#1

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

#2

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

output n'existe pas encore, je pense qu'il faut plutôt renvoyer {'data': []}

#3

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

Merci pour la relecture, en plus testé en local en modifiant le == 0, quand j'ai annulé les changements au fichier je suis remonté trop loin :/

Pour ma peine le patch avec un vrai test.

#4

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

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

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

  • Statut changé de Solution validée à Résolu (à déployer)
commit e916dcf8d2ef9a0878b34a6c19ff2344d43e7e3f
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Wed Apr 17 11:57:13 2019 +0200

    api: don't crash /api/forms when there are no formdefs (#32415)
#6

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

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

Formats disponibles : Atom PDF