Ignore:
Timestamp:
09/02/10 11:51:12 (14 years ago)
Author:
niltonneto
Message:

Ticket #1185 - Corrigido erro ao listar OU com muitos objetos dentro do Catálogo Geral.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/contactcenter/inc/class.bo_global_ldap_catalog.inc.php

    r3134 r3210  
    115115                 
    116116                */ 
    117                 function find($what, $rules=false, $other=false) 
     117                function find($what, $rules=false, $other=false, $recursive=false) 
    118118                { 
    119119                        $restric_fields = $this->get_restrictions_without_branch($rules); 
     
    138138                        {                        
    139139                                $ldap = $GLOBALS['phpgw']->common->ldapConnect($this->src_info['host'], $this->src_info['acc'], $this->src_info['pw'], true); 
    140                                 $result_r = ldap_search($ldap , $this->src_info['context'], $filter, $fields, 0, $this->src_info['max_results']); 
     140                                $result_r = $recursive ? ldap_search($ldap , $this->src_info['context'], $filter, $fields, 0, $this->src_info['max_results']) : 
     141                                                ldap_list($ldap , $this->src_info['context'], $filter, $fields, 0, $this->src_info['max_results']); 
    141142                        } 
    142143                        else 
Note: See TracChangeset for help on using the changeset viewer.