Bug 41992: Do not restore pagination offset
When "Save configuration state on page change" is enabled, the page
number is kept in localStorage and restored.
To prevent that we can set the attribute "start" of the state to 0.
Test plan:
Go on a page with several pages, go to another page than the first one
Go the another view and get back
Without this patch the last visited page was preserved when returning to the previous view
With this patch applied the view now defaults to the first page
Note that this does not affect shareable links.
Signed-off-by: Laura_Escamilla <laura.escamilla@bywatersolutions.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 91f2e47f49)
Signed-off-by: Baptiste Wojtkowski <baptiste.wojtkowski@biblibre.com>
This commit is contained in:
parent
8ac4968e41
commit
044237c121
|
|
@ -1245,6 +1245,7 @@ function _dt_save_restore_state(table_settings, external_filter_nodes = {}) {
|
|||
}
|
||||
|
||||
state = _dt_force_visibility(table_settings, this.api(), state);
|
||||
state.start = 0;
|
||||
|
||||
return state;
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue