From 6cc7922284a36b78ea088a5b41be36080a293fac Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Mon, 25 Jul 2022 09:44:12 +0100 Subject: [PATCH] see #642 - possible fix for pagination being lost --- config.inc.php | 2 +- public/edit.php | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/config.inc.php b/config.inc.php index f419d8d1..fa660557 100644 --- a/config.inc.php +++ b/config.inc.php @@ -261,7 +261,7 @@ $CONF['show_password'] = 'NO'; // Page Size // Set the number of entries that you would like to see // in one page. -$CONF['page_size'] = '10'; +$CONF['page_size'] = '5'; // Default Aliases // The default aliases that need to be created for all domains. diff --git a/public/edit.php b/public/edit.php index cd8c55f4..d12daece 100644 --- a/public/edit.php +++ b/public/edit.php @@ -184,6 +184,14 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") { } } + if ($formconf['listview'] == 'list-virtual.php') { + $bits = []; + $bits['domain'] = $_SESSION['list-virtual:domain'] ?? null; + $bits['limit'] = $_SESSION['list-virtual:limit'] ?? null; + header("Location: " . $formconf['listview'] . '?' . http_build_query(array_filter($bits))); + exit(0); + } + header("Location: " . $formconf['listview']); exit; }