October: Persist user's list settings even after logout from backend

Created on 30 May 2019  路  4Comments  路  Source: octobercms/october

  • OctoberCMS Build: 455
  • PHP Version: 7.2.17
  • Plugins Installed: none

Expected Behavior

When I customize the list settings of any backend list (like show/hide columns, customize the order they appear or sort a column), I expect this list settings to persist.

Bildschirmfoto von 2019-05-30 08-06-59

Actal Behavior

If I log out from the backend and log back in, my list settings are reset to the defaults.

Steps To Reproduce:

  • fresh october cms install (installer or composer doesn't matter)
  • go to a backend page with a list (e.g. Settings/Administrators)
  • change any list setting (e.g. show/hide column)
  • log out from the backend
  • log back in
  • visite the same backend page with list and see it in its default glory

Did this ever work?

Yes. I was not sure if this was always like that and I just never logged out of the backend, but I checked with build 446 and there the list settings are persisted even when I log out.
So I assume that somewhere between 446 and 455 this bug was introduced.

Completed Enhancement

Most helpful comment

@munxar this might have worked previously; but with its current implementation the actual bug was that it was working in the first place. These settings get stored in the session, the only reason this used to work is that there used to be a bug where the session was not properly cleaned on logout. By fixing that bug, we have made it so that this no longer works.

The proper fix to this would be to make it an option to store cached list preferences in the UserPreference models as well as the session.

All 4 comments

@munxar confirmed!

@munxar this might have worked previously; but with its current implementation the actual bug was that it was working in the first place. These settings get stored in the session, the only reason this used to work is that there used to be a bug where the session was not properly cleaned on logout. By fixing that bug, we have made it so that this no longer works.

The proper fix to this would be to make it an option to store cached list preferences in the UserPreference models as well as the session.

@munxar Could you give https://github.com/octobercms/october/pull/4360 a test when you have a chance, and see if this gives back the config behaviour you're looking for?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mittultechnobrave picture mittultechnobrave  路  3Comments

oppin picture oppin  路  3Comments

mittultechnobrave picture mittultechnobrave  路  3Comments

lukaszbanas-extremecoding picture lukaszbanas-extremecoding  路  3Comments

gergo85 picture gergo85  路  3Comments