SF Bug #1008 getContainerPath doesn't properly traverse to baseDN and back & #1009 - return_ldap_hash should not return container object in result set
This commit is contained in:
parent
e45e71fd08
commit
f4c8c3d31e
@ -264,6 +264,9 @@ class TemplateRender extends PageRender {
|
|||||||
*
|
*
|
||||||
* * arg 8 (for MultiList)
|
* * arg 8 (for MultiList)
|
||||||
* - size of displayed list (default: 10 lines)
|
* - size of displayed list (default: 10 lines)
|
||||||
|
*
|
||||||
|
* * arg 9
|
||||||
|
* - if whether to include parent in sub query TRUE|FALSE
|
||||||
*/
|
*/
|
||||||
case 'MultiList':
|
case 'MultiList':
|
||||||
case 'PickList':
|
case 'PickList':
|
||||||
@ -322,6 +325,9 @@ class TemplateRender extends PageRender {
|
|||||||
$vals = array();
|
$vals = array();
|
||||||
|
|
||||||
foreach ($picklistvalues as $key => $values) {
|
foreach ($picklistvalues as $key => $values) {
|
||||||
|
if (! empty($args[9]) && $container == $key)
|
||||||
|
continue;
|
||||||
|
|
||||||
$display = $args[3];
|
$display = $args[3];
|
||||||
|
|
||||||
foreach ($matchall[1] as $key => $arg) {
|
foreach ($matchall[1] as $key => $arg) {
|
||||||
|
@ -939,7 +939,7 @@ class ldap extends DS {
|
|||||||
$dn = $this->getContainer($dn);
|
$dn = $this->getContainer($dn);
|
||||||
|
|
||||||
if ($dn == $top)
|
if ($dn == $top)
|
||||||
break;
|
continue;
|
||||||
|
|
||||||
} elseif($value)
|
} elseif($value)
|
||||||
$dn = sprintf('%s,%s',$value,$dn);
|
$dn = sprintf('%s,%s',$value,$dn);
|
||||||
|
Loading…
Reference in New Issue
Block a user