From 16bf55223d61a844cfabd913935d776331162d32 Mon Sep 17 00:00:00 2001 From: Vincent A Date: Mon, 8 Mar 2021 18:04:33 +0100 Subject: [PATCH] [caissedepargne] fix Subscription.id type and value It should be str, not Decimal. Also, it trimmed leading zeroes, which is wrong. --- modules/caissedepargne/pages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/caissedepargne/pages.py b/modules/caissedepargne/pages.py index e128b081ad..af17911b91 100644 --- a/modules/caissedepargne/pages.py +++ b/modules/caissedepargne/pages.py @@ -2490,7 +2490,7 @@ class iter_subscription(ListElement): class item(ItemElement): klass = Subscription - obj_id = CleanDecimal('.') + obj_id = Regexp(CleanText('.'), r"(\d+)") obj_label = Regexp(CleanText('.'), r'([^\d]*) ') obj_subscriber = Field('label') -- GitLab