From 354a377830f2c6bc544d08088507d7c82debf2d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Fri, 14 Feb 2020 11:31:42 +0100 Subject: [PATCH] payments: avoid crash on missing payment action (#39872) --- auquotidien/modules/payments.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/auquotidien/modules/payments.py b/auquotidien/modules/payments.py index 0de01a4..316db45 100644 --- a/auquotidien/modules/payments.py +++ b/auquotidien/modules/payments.py @@ -176,6 +176,8 @@ class InvoiceEvolutionPart: 'subject': self.subject, 'amount': self.amount, } + if not self.action: + return '' if self.transaction: vars['transaction_order_id'] = self.transaction.order_id return htmltext('

' % self.action + \