2
0
forked from Wavyzz/dolibarr
This commit is contained in:
Laurent Destailleur
2024-03-20 21:27:28 +01:00
parent fe4d567a82
commit 5bae4ffe4d
2 changed files with 2 additions and 3 deletions

View File

@@ -73,7 +73,6 @@ if ($setcurrency != "") {
// We will recalculate amount for foreign currency at next call of invoice.php when $_SESSION["takeposcustomercurrency"] differs from invoice->multicurrency_code.
}
$_SESSION["urlfrom"] = '/takepos/index.php';
$langs->loadLangs(array("bills", "orders", "commercial", "cashdesk", "receiptprinter", "banks"));
@@ -1107,7 +1106,7 @@ if (empty($conf->global->TAKEPOS_HIDE_HEAD_BAR)) {
}?>
<div class="login_block_user">
<?php
print top_menu_user(1);
print top_menu_user(1, DOL_URL_ROOT.'/user/logout.php?token='.newtoken().'&urlfrom='.urlencode('/takepos/?setterminal='.((int) $term)));
?>
</div>
</div>

View File

@@ -72,7 +72,7 @@ if ($reshook < 0) {
}
// Define url to go after disconnect
$urlfrom = empty($_SESSION["urlfrom"]) ? '' : $_SESSION["urlfrom"];
$urlfrom = empty($_SESSION["urlfrom"]) ? GETPOST('urlfrom') : $_SESSION["urlfrom"];
// Define url to go
$url = DOL_URL_ROOT."/index.php"; // By default go to login page