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
Location switch bug fix #532
Location switch bug fix #532
Conversation
Came across this random bug where the location change wouldn't stick in Chrome... the fix ended up being to clear the session before adding to it.
In fact, this only works if you're a superadmin. If youre not, then it still fails to let you switch. The right session var is setup, but on page reload it resets back. Any guidance gratefully received! |
Ok, want to ask before I commit changes... TastyIgniter/app/admin/classes/Location.php Line 111 in 5bcbeed
Should this not be
Should this not be isEmpty() Feels like the functions do the reverse of what their name suggests? |
Hmm actually, thats not right either. I think this:
needs to become: |
Yea the last one works but then breaks as hasLocationAccess expects a model, so maybe rename
so we end up with the changes to the Menu widgets won't be needed. |
This reverts commit 35ad407.
Yep thats perfect. Updated. |
* Location switch bug fix Came across this random bug where the location change wouldn't stick in Chrome... the fix ended up being to clear the session before adding to it. * Revert "Location switch bug fix" This reverts commit 35ad407. * Change of approach Co-authored-by: Sam Poyigi <sam@sampoyigi.com>
Came across this random bug where the location change wouldn't stick in Chrome... the fix ended up being to clear the session before adding to it.