Merge pull request #11774 from ptibogxiv/patch-250
FIX logout redirect to takepos.php
This commit is contained in:
commit
9c6cbfeb7f
@ -47,6 +47,8 @@ if ($setterminal>0)
|
||||
$_SESSION["takeposterminal"]=$setterminal;
|
||||
}
|
||||
|
||||
$_SESSION["urlfrom"]='/takepos/takepos.php';
|
||||
|
||||
$langs->loadLangs(array("bills","orders","commercial","cashdesk","receiptprinter"));
|
||||
|
||||
$categorie = new Categorie($db);
|
||||
|
||||
@ -80,6 +80,7 @@ if (session_status() === PHP_SESSION_ACTIVE)
|
||||
// Not sure this is required
|
||||
unset($_SESSION['dol_login']);
|
||||
unset($_SESSION['dol_entity']);
|
||||
unset($_SESSION['urlfrom']);
|
||||
|
||||
if (GETPOST('noredirect')) return;
|
||||
header("Location: ".$url); // Default behaviour is redirect to index.php page
|
||||
|
||||
Loading…
Reference in New Issue
Block a user