From 6d09c8523198e98da9c272382d2e7d08f345a943 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 5 Feb 2019 14:01:32 +0100 Subject: [PATCH] Fix missing button --- htdocs/public/payment/newpayment.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/htdocs/public/payment/newpayment.php b/htdocs/public/payment/newpayment.php index 6df6fba57f6..e7e911ead7b 100644 --- a/htdocs/public/payment/newpayment.php +++ b/htdocs/public/payment/newpayment.php @@ -1596,17 +1596,19 @@ if ($action != 'dopayment') { print '

'.$langs->trans("InvoicePaid").''; } - elseif ($source == 'membersubscription' && $object->datefin > dol_now()) - { - $langs->load("members"); - print '

'.$langs->trans("MembershipPaid").''; - } elseif ($source == 'donation' && $object->paid) { print '

'.$langs->trans("DonationPaid").''; } else { + // Membership can be paid and we still allow to make renewal + if ($source == 'membersubscription' && $object->datefin > dol_now()) + { + $langs->load("members"); + print '

'.$langs->trans("MembershipPaid").''; + } + // Buttons for all payments registration methods if ((empty($paymentmethod) || $paymentmethod == 'paybox') && ! empty($conf->paybox->enabled))