Anomalie #17431
[Action] erreur lorsqu’on envoie en visa/signature alors qu’aucun type de PJ n’est signable
Description
Lorsqu’aucun type de pièce-jointe n’est signable et qu’on tente d’envoyer en visa/signature, on a une erreur technique au lieu d’une erreur claire pour l’utilisateur.
En effet cela résulte en un attachment_type in ()
en SQL, ce qui cause une erreur de syntaxe.
Dans le fichier src/app/action/controllers/PreProcessActionController.php
, lignes 1089, il faudrait rajouter une vérification pour voir si le tableau des types de PJs signables n’est pas vide, et s’il l’est, renvoyer un message d’erreur clair à l’utilisateur.
History
#1 Updated by Quentin RIBAC 11 months ago
- Target version changed from 21.03 (stable) to Develop
#2 Updated by Quentin RIBAC 11 months ago
- Tags Courrier 21.03.5 added
#3 Updated by Emmanuel DILLARD 11 months ago
- Status changed from A traiter to Prêt à développer
- Target version changed from Develop to 21.03 (stable)
- Tags Courrier deleted (
21.03.5)
#4 Updated by Emmanuel DILLARD 11 months ago
- Status changed from Prêt à développer to En cours de dev (S)
#5 Updated by Emmanuel DILLARD 11 months ago
- Tags Courrier 21.03.5 added
#7 Updated by GIT LAB 11 months ago
Commit ajouté sur la branche fix/1743/attachment-type-not-signable de MaarchCourrier
FIX #17431 TIME 0:40 improve check of signable attachment in preprocess
https://labs.maarch.org/maarch/MaarchCourrier/commit/eb6726698c3028c3a8cb262bf4ec30f18e6bcffd
#10 Updated by GIT LAB 11 months ago
Commit ajouté sur la branche 21.03 de MaarchCourrier
FIX #17431 TIME 0:40 improve check of signable attachment in preprocess (cherry picked from commit eb6726698c3028c3a8cb262bf4ec30f18e6bcffd)
https://labs.maarch.org/maarch/MaarchCourrier/commit/7c15249253960b9ca749b026aa5fa54dab9ff04a
#12 Updated by Guillaume HEURTIER 11 months ago
- Status changed from A tester (S) to Développé / Analysé (S)