Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX it creates side effects after logout with takepos #28978

Closed
wants to merge 1 commit into from

Conversation

hregis
Copy link
Contributor

@hregis hregis commented Mar 19, 2024

No description provided.

@@ -73,7 +73,8 @@
// 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';
// TODO it creates side effects
//$_SESSION["urlfrom"] = '/takepos/index.php';
Copy link
Member

@eldy eldy Mar 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to introduce a problem with the logout from takepos.
After this change when we logout from Takepos, we go back on login (good), but when we login, we do not reach the takepos page again.
Instead we reach the backoffice (with sometimes an access error when users are allowed to use the takepos only).

What was wrong with old code ?

@eldy eldy added the Discussion Some questions or discussions are opened and wait answers of author or other people to be processed label Mar 19, 2024
@eldy eldy closed this in e16d1d5 Mar 20, 2024
eldy added a commit that referenced this pull request Mar 20, 2024
eldy added a commit that referenced this pull request Mar 20, 2024
@eldy
Copy link
Member

eldy commented Mar 20, 2024

I pushed a fix that replace the session with a param in url in develop and have cherry pickedninto v19 and 18. Can you test it's ok for you in your v18 ?

@hregis hregis deleted the fix_avoid_foreach_warning branch March 21, 2024 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Discussion Some questions or discussions are opened and wait answers of author or other people to be processed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants