Actions
Bug #13724
closedajouter une validation au champ "expiration" du déclencheur d'action globale
Start date:
24 October 2016
Due date:
% Done:
0%
Estimated time:
Patch proposed:
Yes
Planning:
Description
Il est noté sous le champ "Nombre de jours [...]" mais des personnes se trouvent malgré tout à essayer d'y écrire "30 jours".
Ce qui produit derrière cette erreur :
Exception:
type = '<type 'exceptions.ValueError'>', value = 'invalid literal for int() with base 10: '30 jours''
Stack trace (most recent call first):
File "/usr/lib/python2.7/dist-packages/wcs/workflows.py", line 1100, in must_trigger
1098 return False
1099
> 1100 anchor_date = anchor_date + datetime.timedelta(days=int(self.timeout))
1101
1102 return bool(datetime.datetime.now() > anchor_date)
locals:
anchor_date = datetime.datetime(2016, 10, 24, 15, 7, 35)
formdata = <Votre-Demande-Aupres-Du-Service-Proximite id:2>
self = <wcs.workflows.WorkflowGlobalActionTimeoutTrigger object at 0x2e2fb50>
Files
Updated by Frédéric Péters over 9 years ago
- File 0001-admin-only-allow-digits-in-workflow-global-trigger-t.patch 0001-admin-only-allow-digits-in-workflow-global-trigger-t.patch added
- Status changed from Nouveau to En cours
- Patch proposed changed from No to Yes
Updated by Frédéric Péters over 9 years ago
- Status changed from En cours to Résolu (à déployer)
commit 273c68d53e542c834f2fa90632bfd0132bbc2677
Author: Frédéric Péters <fpeters@entrouvert.com>
Date: Mon Oct 24 21:11:42 2016 +0200
admin: only allow digits in workflow global trigger timeout (#13724)
Updated by Frédéric Péters about 9 years ago
- Status changed from Résolu (à déployer) to Fermé
Actions