new type API

This commit is contained in:
Roland Gruber 2017-04-24 20:13:20 +02:00
parent 94553967e5
commit b4248bc898
2 changed files with 1 additions and 2 deletions

View File

@ -284,7 +284,7 @@ class lamDHCPList extends lamList {
function listDoPost() {
$fragment = parent::listDoPost();
if (isset($_POST['dhcpDefaults'])) {
metaRefresh("../account/edit.php?type=dhcp&DN='".$_SESSION['config']->get_suffix('dhcp')."'");
metaRefresh("../account/edit.php?type=dhcp&DN='" . $this->type->getSuffix() . "'");
die();
}
else {

View File

@ -630,7 +630,6 @@ class lamUserList extends lamList {
*/
protected function refreshPrimaryGroupTranslation() {
$this->trans_primary_hash = array();
$grp_suffix = $_SESSION['config']->get_Suffix('group');
$filter = "objectClass=posixGroup";
$attrs = array("cn", "gidNumber");
$entries = searchLDAPByAttribute(null, null, 'posixGroup', $attrs, array('group'));