From e81dae7872af693b7c3763772dcea08d1bb2198f Mon Sep 17 00:00:00 2001 From: Maxime Gasselin Date: Wed, 12 Jun 2019 15:52:09 +0200 Subject: [PATCH] [creditmutuel] Allows " in subcription id the %s method is not compatible with " . Exemple of subscription id: SCI "18 B Name " Closes: 38139@sibi 11531@zendesk --- modules/creditmutuel/pages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/creditmutuel/pages.py b/modules/creditmutuel/pages.py index 7b3eb96bdd..6c8c9b7ded 100644 --- a/modules/creditmutuel/pages.py +++ b/modules/creditmutuel/pages.py @@ -1846,7 +1846,7 @@ def iter_subscriptions(self): options = self.doc.xpath('//select[@id="SelTiers"]/option') if options: for opt in options: - subscriber = self.doc.xpath('//select[@id="SelTiers"]/option[contains(text(), "%s")]' % CleanText('.')(opt))[0] + subscriber = self.doc.xpath('//select[@id="SelTiers"]/option[contains(text(), $subscriber)]', subscriber=CleanText('.')(opt))[0] self.submit_form(Attr('.', 'value')(subscriber)) for sub in self.get_subscriptions(subscription_list, subscriber): yield sub -- GitLab