From dcae2d5a7c6d0f00eec19498f596b0c7b09c257c Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Mon, 27 Oct 2008 11:20:51 +0000 Subject: [PATCH] =?UTF-8?q?-=20LSldapObject=20:=20Ajout=20d'une=20possibil?= =?UTF-8?q?it=C3=A9=20de=20trie=20par=20d=C3=A9faut.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- trunk/conf/LSobjects/config.LSobjects.LSeegroup.php | 1 + trunk/select.php | 1 + trunk/view.php | 1 + 3 files changed, 3 insertions(+) diff --git a/trunk/conf/LSobjects/config.LSobjects.LSeegroup.php b/trunk/conf/LSobjects/config.LSobjects.LSeegroup.php index 2ce65191..d8c1fa5d 100644 --- a/trunk/conf/LSobjects/config.LSobjects.LSeegroup.php +++ b/trunk/conf/LSobjects/config.LSobjects.LSeegroup.php @@ -26,6 +26,7 @@ $GLOBALS['LSobjects']['LSeegroup'] = array ( 'posixGroup' ), 'rdn' => 'cn', + 'orderby' => 'displayValue', // Valeurs possibles : 'displayValue' ou 'subDn' 'container_dn' => 'ou=groups', 'container_auto_create' => array( 'objectclass' => array( diff --git a/trunk/select.php b/trunk/select.php index 392a75e4..0cbc5e90 100644 --- a/trunk/select.php +++ b/trunk/select.php @@ -68,6 +68,7 @@ if($LSsession -> startLSsession()) { $approx = false; $selectedTopDn = $GLOBALS['LSsession'] -> topDn; $orderby = false; + $_REQUEST['orderby']=$GLOBALS['LSobjects'][$LSobject]['orderby']; $ordersense = 'ASC'; $subDnLdapServer = $GLOBALS['LSsession'] -> getSubDnLdapServer(); $doSubDn = (($subDnLdapServer)&&(!$GLOBALS['LSsession']->isSubDnLSobject($LSobject))); diff --git a/trunk/view.php b/trunk/view.php index 76fb1d8e..96091271 100644 --- a/trunk/view.php +++ b/trunk/view.php @@ -196,6 +196,7 @@ if($LSsession -> startLSsession()) { $recur = false; $approx = false; $orderby = false; + $_REQUEST['orderby']=$GLOBALS['LSobjects'][$LSobject]['orderby']; $ordersense = 'ASC'; $subDnLdapServer = $GLOBALS['LSsession'] -> getSubDnLdapServer(); $doSubDn = (($subDnLdapServer)&&(!$GLOBALS['LSsession']->isSubDnLSobject($LSobject)));