undo last commit, this is better fixed in lists.inc
This commit is contained in:
parent
364050afbe
commit
f0c891b9f4
|
@ -431,6 +431,7 @@ class lamList {
|
||||||
$list = array();
|
$list = array();
|
||||||
// load accounts from LDAP
|
// load accounts from LDAP
|
||||||
for ($i = 0; $i < sizeof($accounts); $i++) {
|
for ($i = 0; $i < sizeof($accounts); $i++) {
|
||||||
|
if (!isset($this->entries[$accounts[$i]]['dn'])) continue;
|
||||||
$_SESSION["accountPDF-$i"] = new accountContainer($this->type, "accountPDF-$i");
|
$_SESSION["accountPDF-$i"] = new accountContainer($this->type, "accountPDF-$i");
|
||||||
$_SESSION["accountPDF-$i"]->load_account($this->entries[$accounts[$i]]['dn']);
|
$_SESSION["accountPDF-$i"]->load_account($this->entries[$accounts[$i]]['dn']);
|
||||||
$list[$i] = $_SESSION["accountPDF-$i"];
|
$list[$i] = $_SESSION["accountPDF-$i"];
|
||||||
|
|
|
@ -131,6 +131,7 @@ class lamUserList extends lamList {
|
||||||
* Manages all POST actions (e.g. button pressed) for the account lists.
|
* Manages all POST actions (e.g. button pressed) for the account lists.
|
||||||
*/
|
*/
|
||||||
function listDoPost() {
|
function listDoPost() {
|
||||||
|
parent::listDoPost();
|
||||||
// check if primary group should be translated
|
// check if primary group should be translated
|
||||||
if (isset($_POST['apply_trans_primary'])) {
|
if (isset($_POST['apply_trans_primary'])) {
|
||||||
$this->trans_primary = $_POST['trans_primary'];
|
$this->trans_primary = $_POST['trans_primary'];
|
||||||
|
@ -150,8 +151,6 @@ class lamUserList extends lamList {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (isset($_POST['trans_primary'])) unset($_POST['trans_primary']);
|
|
||||||
parent::listDoPost();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue