https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39930
Lin Wei <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #186139|0 |1 is obsolete| | --- Comment #10 from Lin Wei <[email protected]> --- Created attachment 186182 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=186182&action=edit Bug 39930: Prevent DT's state to be lost overnight The default value for stateDuration is 7200 (2h). Which means DataTables will ignore the saved state if reused after this delay. Additionally is causes problem on some tables where the default state is not restored and all columns are displayed. From https://datatables.net/reference/option/stateDuration ``` Please note that the value is given in seconds. The value 0 is a special value as it indicates that the state can be stored and retrieved indefinitely with no time limit. ``` We are going to set it to 0 so that the state is only lost/reset after a logout Test plan: Ideally you can should edit this file and set saveState to 60 (seconds), so it's easy to test. Do not apply this patch and confirm that the state is not restored after either 60s or 2h (if you modified the file or not). It is a problem on the checkout list table as extra columns (like "Today's checkouts") are displayed. With this patch applied the state should be restored correctly. If you logout the state will be lost however. Ideally we might want to store user's preferences on the server. Signed-off-by: Ludovic Julien <[email protected]> -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
