From 1af6bf4315fc45a01b6c7261a350a52ce47fc2fd Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Tue, 6 Nov 2007 17:42:37 +0000 Subject: [PATCH] use list suffix as default --- lam/lib/lists.inc | 7 +++++-- lam/lib/modules.inc | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/lam/lib/lists.inc b/lam/lib/lists.inc index b5a775bd..dafd0ab5 100644 --- a/lam/lib/lists.inc +++ b/lam/lib/lists.inc @@ -150,7 +150,10 @@ class lamList { else { // buttons $this->listPrintButtons(true); - echo ("
\n"); + echo ("
\n"); + // navigation bar + $this->listDrawNavigationBar(sizeof($filteredEntries)); + echo ("
\n"); // account table head $this->listPrintTableHeader(); echo "
\n"; @@ -469,7 +472,7 @@ class lamList { if (isset($_POST['new']) || isset($_POST['del']) || isset($_POST['pdf']) || isset($_POST['pdf_all'])){ // add new account if (isset($_POST['new'])){ - metaRefresh("../account/edit.php?type=" . $this->type); + metaRefresh("../account/edit.php?type=" . $this->type . "&suffix=" . $this->suffix); exit; } // delete account(s) diff --git a/lam/lib/modules.inc b/lam/lib/modules.inc index 2d9edd33..4da8e91f 100644 --- a/lam/lib/modules.inc +++ b/lam/lib/modules.inc @@ -841,7 +841,7 @@ class accountContainer { if ($this->current_page==0) { if ($this->subpage=='attributes') { // change dn - if (isset($_POST['suffix']) && ($_POST['suffix'] != '')) $this->dn = $_POST['suffix']; + if (isset($_REQUEST['suffix']) && ($_REQUEST['suffix'] != '')) $this->dn = $_REQUEST['suffix']; // change RDN if (isset($_POST['rdn'])) $this->rdn = $_POST['rdn'];