Projet

Général

Profil

Bug #40190

source de données dépendant d'un champ prérempli de la même (première) page

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

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

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

Formulaire,

à la consultation du formulaire, le champ liste n'est pas rempli par https://.../?...{{form_var_plop_raw}}


Fichiers


Demandes liées

Lié à w.c.s. - Bug #40216: KeyError, optionsFermé27 février 2020

Actions
Lié à w.c.s. - Bug #40235: time data '' does not match format '%d/%m/%Y'Fermé27 février 2020

Actions

Révisions associées

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

forms: refill item fields based on prefilled values (#40190)

Révision 4a13391b (diff)
Ajouté par Thomas Noël il y a environ 4 ans

Revert "forms: refill item fields based on prefilled values (#40190)"

This reverts commit f274d4442e42bdaac1b5f277a589e2a1a12a3590.

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

forms: refill item fields based on prefilled values (#40190)

Historique

#2

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

Quelque chose comme ça va marcher pour ce cas (mais un jour c'est toute la relation entre les données et les formulaires et les submit et les prefill qu'il faudra reprendre); je verrai pour des tests demain.

#3

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

Voilà avec un test pour accompagner le code.

#4

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

  • Statut changé de Solution proposée à Résolu (à déployer)
commit f274d4442e42bdaac1b5f277a589e2a1a12a3590
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Tue Feb 25 18:23:50 2020 +0100

    forms: refill item fields based on prefilled values (#40190)

(ça n'a pas été le patch le plus facile à relire de ma carrière de relecteur)

#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
#6

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

  • Statut changé de Solution déployée à En cours

Reverté (cf #40235)

#7

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

#8

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

  • Lié à Bug #40235: time data '' does not match format '%d/%m/%Y' ajouté
#9

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

  • Statut changé de En cours à Solution proposée

Maintenant qu'il y a #40235 + tests: add checks for all convert_value_from_str with empty strings, je propose de repasser :

  • 308f38da0 forms: refill item fields based on prefilled values (#40190)
  • 5e708ec8e forms: only update item options if there are new values (#40216)
#10

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 :

Maintenant qu'il y a #40235 + tests: add checks for all convert_value_from_str with empty strings, je propose de repasser :

  • 308f38da0 forms: refill item fields based on prefilled values (#40190)
  • 5e708ec8e forms: only update item options if there are new values (#40216)

Oui, bien sûr.

#11

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

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

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