Ignore:
Timestamp:
09/02/10 14:54:07 (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.2/contactcenter/inc/class.bo_global_ldap_catalog.inc.php

    r3135 r3211  
    113113                 
    114114                */ 
    115                 function find($what, $rules=false, $other=false, $area=false) 
     115                function find($what, $rules=false, $other=false, $area=false, $recursive=false) 
    116116                { 
    117117                        $restric_fields = $this->get_restrictions_without_branch($rules); 
     
    170170                        } 
    171171                         
    172                         $ldap = $GLOBALS['phpgw']->common->ldapConnect($this->src_info['host'], $this->src_info['acc'], $this->src_info['pw'], $followReferral); 
    173                         $result_r = ldap_search($ldap ,($refer_context  ? $refer_context  : $this->src_info['context']), $filter, $fields, 0, $this->src_info['max_results']); 
     172                        $ldap = $GLOBALS['phpgw']->common->ldapConnect($this->src_info['host'], $this->src_info['acc'], $this->src_info['pw'], $followReferral); 
     173                        $result_r = $recursive ? ldap_search($ldap ,($refer_context  ? $refer_context  : $this->src_info['context']), $filter, $fields, 0, $this->src_info['max_results']) : 
     174                                                ldap_list($ldap , ($refer_context  ? $refer_context  : $this->src_info['context']), $filter, $fields, 0, $this->src_info['max_results']); 
    174175 
    175176                        if (!$result_r) 
Note: See TracChangeset for help on using the changeset viewer.