Skip to content

Commit b0dec8d

Browse files
committed
Fixed: FS#1279 - DNS zone with more than 1 page and DNS zone with only one page.
1 parent 4366801 commit b0dec8d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

interface/web/dns/dns_soa_edit.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,16 @@
5050

5151
class page_action extends tform_actions {
5252

53+
function onShow() {
54+
global $app;
55+
//* Reset the page number of the list form for the dns
56+
//* records to 0 if we are on the first tab of the soa form.
57+
if($app->tform->getNextTab() == 'dns_soa') {
58+
$_SESSION['search']['dns_a']['page'] = 0;
59+
}
60+
parent::onShow();
61+
}
62+
5363
function onShowNew() {
5464
global $app, $conf;
5565

0 commit comments

Comments
 (0)