no more redirection to subscriptionok after paymentok successful

This commit is contained in:
Dorian Vabre 2021-04-21 15:36:07 +02:00
parent 8e7043eca6
commit ebf2466d7b

View File

@ -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();
}