Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Mar 20, 2024
1 parent fe4d567 commit 5bae4ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions htdocs/takepos/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@
// 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"));

Expand Down Expand Up @@ -1107,7 +1106,7 @@ function scrollTo(){
}?>
<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>
Expand Down
2 changes: 1 addition & 1 deletion htdocs/user/logout.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
}

// 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
Expand Down

0 comments on commit 5bae4ff

Please sign in to comment.