Skip to content

Commit

Permalink
bugfix: sidusis: fixed jump to manually entered page
Browse files Browse the repository at this point in the history
  • Loading branch information
chilek committed Jan 13, 2023
1 parent dd60cbe commit bb6f65c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions modules/netranges.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions templates/default/net/netranges.html
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ <h1>{$layout.pagetitle}</h1>
{if $pagination->getTotal() != 0}
<tr>
<td class="lms-ui-pagination" colspan="7">
{include file="pagination.html"}
{include file="pagination.html" form="netranges"}
</td>
</tr>
{/if}
Expand Down Expand Up @@ -510,7 +510,7 @@ <h1>{$layout.pagetitle}</h1>
{if $pagination->getTotal() != 0}
<tr>
<td class="lms-ui-pagination" colspan="7">
{include file="pagination.html"}
{include file="pagination.html" form="netranges"}
</td>
</tr>
{/if}
Expand Down

0 comments on commit bb6f65c

Please sign in to comment.