Development #72012
faire en sorte que form_links_whatever retourne la dernière fiche liée
Start date:
05 December 2022
Due date:
% Done:
0%
Estimated time:
Patch proposed:
Yes
Planning:
No
Description
Parce que c'est ce qu'on attend intuitivement, et qu'on suivrait ainsi ce qu'on fait dans form_workflow_form_xxx (qui renvoie toujours la dernière valeur attrapé du formulaire xxx).
Actuellement on renvoie toujours la première fiche liée :
class LazyFormDataLinksItems: ... @property def form(self): # alias when there's a single linked formdata return self._linked_formdatas[0]['form']
Je pense pas que ça devrait bousiller l'existant... avis bienvenus cependant.
Files
Associated revisions
History
Updated by Thomas Noël 2 months ago
- File 0001-use-last-linked-object-for-form_links_xxx-72012.patch added
- Status changed from Nouveau to Solution proposée
- Patch proposed changed from No to Yes
Voilà.
Encore une fois je ne pense pas que ça aura un impact ... mais avis bienvenus cependant.
Updated by Thomas Noël 2 months ago
- File deleted (
0001-use-last-linked-object-for-form_links_xxx-72012.patch)
Updated by Thomas Noël 2 months ago
- File 0001-use-last-linked-object-for-form_links_xxx-72012.patch 0001-use-last-linked-object-for-form_links_xxx-72012.patch added
Erreur de patch, voici le "bon".
Updated by Frédéric Péters 2 months ago
J'ai fait un tour d'utilisations sur la prod et il me semble que ça ne porterait pas à conséquence.
Updated by Frédéric Péters about 2 months ago
- Status changed from Solution proposée to Solution validée
Ça a été évoqué sur la liste sans réaction.
Updated by Thomas Noël about 2 months ago
- Status changed from Solution validée to Résolu (à déployer)
commit a49cddf01d3acc7947c3dd6aa882305585afb034 Author: Thomas NOEL <tnoel@entrouvert.com> Date: Mon Dec 5 10:33:47 2022 +0100 use last linked object for form_links_xxx (#72012)
Updated by Transition automatique about 2 months ago
- Status changed from Résolu (à déployer) to Solution déployée
use last linked object for form_links_xxx (#72012)