From bb6f65c42d9199cdb513f863f27abf6990a6158e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Chili=C5=84ski?= Date: Fri, 13 Jan 2023 17:07:48 +0100 Subject: [PATCH] bugfix: sidusis: fixed jump to manually entered page --- modules/netranges.php | 2 ++ templates/default/net/netranges.html | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/netranges.php b/modules/netranges.php index dd12ced98d..0450356fcc 100644 --- a/modules/netranges.php +++ b/modules/netranges.php @@ -764,6 +764,8 @@ function getBuildings(array $filter) if (isset($_GET['page'])) { $page = intval($_GET['page']); +} elseif (isset($_POST['page'])) { + $page = intval($_POST['page']); } elseif ($SESSION->is_set('netranges_page')) { $SESSION->restore('netranges_page', $page); $page = intval($page); diff --git a/templates/default/net/netranges.html b/templates/default/net/netranges.html index 891101af19..92544edec2 100644 --- a/templates/default/net/netranges.html +++ b/templates/default/net/netranges.html @@ -302,7 +302,7 @@

{$layout.pagetitle}

{if $pagination->getTotal() != 0} - {include file="pagination.html"} + {include file="pagination.html" form="netranges"} {/if} @@ -510,7 +510,7 @@

{$layout.pagetitle}

{if $pagination->getTotal() != 0} - {include file="pagination.html"} + {include file="pagination.html" form="netranges"} {/if}