Skip to content

Commit 3745aba

Browse files
authored
Merge pull request #6005 from christianbeeznest/stib-22319
Internal: Fix pagination issue in SortableTable session handling - refs BT#22319
2 parents bf8f2dd + 3d19c00 commit 3745aba

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

main/inc/local.inc.php

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1250,16 +1250,25 @@
12501250

12511251
if (!empty($_SESSION)) {
12521252
foreach ($_SESSION as $key => $session_item) {
1253-
if (strpos($key, 'lp_autolaunch_') === false) {
1254-
continue;
1255-
} else {
1253+
// Clear session keys related to SortableTable
1254+
if (strpos($key, 'table_') === 0 || strpos($key, 'sortable_table_') === 0) {
1255+
if (isset($_SESSION[$key])) {
1256+
Session::erase($key);
1257+
}
1258+
}
1259+
1260+
// Clear session keys related to lp_autolaunch_
1261+
if (strpos($key, 'lp_autolaunch_') !== false) {
12561262
if (isset($_SESSION[$key])) {
12571263
Session::erase($key);
12581264
}
12591265
}
12601266
}
12611267
}
12621268

1269+
// Clear the general clean_sortable_table flag if it exists
1270+
Session::erase('clean_sortable_table');
1271+
12631272
if (api_get_group_id()) {
12641273
Session::erase('_gid');
12651274
}

0 commit comments

Comments
 (0)