From ebf2466d7b347836edc500762d3838d4e9b859d3 Mon Sep 17 00:00:00 2001 From: Dorian Vabre Date: Wed, 21 Apr 2021 15:36:07 +0200 Subject: [PATCH] no more redirection to subscriptionok after paymentok successful --- htdocs/public/payment/paymentok.php | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/htdocs/public/payment/paymentok.php b/htdocs/public/payment/paymentok.php index 88ab62a8b2f..8b040692dc8 100644 --- a/htdocs/public/payment/paymentok.php +++ b/htdocs/public/payment/paymentok.php @@ -889,17 +889,6 @@ if ($ispaymentok) { } else { $attendeetovalidate->setStatut(1); } - - // Redirecting to confirmation page - $thirdparty = new Societe($db); - $resultthirdparty = $thirdparty->fetch($attendeetovalidate->fk_soc); - if ($resultthirdparty < 0) { - setEventMessages(null, $thirdparty->errors, "errors"); - } else { - $redirection = $dolibarr_main_url_root.'/public/eventorganization/subscriptionok.php?idthirdparty='.dol_encode($thirdparty->id, $dolibarr_main_instance_unique_id).'&securekey='.dol_encode($conf->global->EVENTORGANIZATION_SECUREKEY, $dolibarr_main_instance_unique_id); - Header("Location: ".$redirection); - exit; - } } else { $db->rollback(); }