Changeset 5199 for trunk/expressoMail1_2


Ignore:
Timestamp:
11/23/11 14:36:17 (12 years ago)
Author:
gustavo
Message:

Ticket #2331 - Preferência do ExpressoMail? aparentemente sem efeito

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/inc/class.ldap_functions.inc.php

    r5196 r5199  
    9898                $contacts_result['field'] = $field; 
    9999                $contacts_result['ID'] = $ID; 
    100                 $search_for = utf8_encode($params['search_for']); 
    101  
     100                $search_for = utf8_encode($params['search_for']); 
     101                 
     102                if($_SESSION['phpgw_info']['user']['preferences']['expressoMail']['extended_info']) 
     103                        $extendedinfo=true; 
     104                else 
     105                        $extendedinfo=false; 
     106                 
    102107                // follow the referral 
    103108                $this->ldapConnect(true); 
     
    106111                { 
    107112                    $ldapService->connection = $this->ds; 
    108  
    109                 $justthese = array("cn", "mail", "telephonenumber", "mobile", "phpgwaccountvisible", "uid", "employeenumber", "ou"); 
     113                                if($extendedinfo) 
     114                        $justthese = array("cn", "mail", "telephonenumber", "mobile", "phpgwaccountvisible", "uid", "employeenumber", "ou"); 
     115                                else  
     116                                        $justthese = array("cn", "mail", "telephoneNumber", "phpgwAccountVisible", "uid"); 
    110117                $types = false; 
    111118 
     
    139146                                                $this->ldapConnect(true,$i); 
    140147                                                $filter="(|(cn=*$search_for*)(mail=*$search_for*))"; 
    141                                                 $justthese = array("cn", "mail", "telephoneNumber", "mobile", "phpgwAccountVisible", "uid","employeeNumber", "ou"); 
     148                                                if($extendedinfo) 
     149                                        $justthese = array("cn", "mail", "telephonenumber", "mobile", "phpgwaccountvisible", "uid", "employeenumber", "ou"); 
     150                                                else  
     151                                                        $justthese = array("cn", "mail", "telephoneNumber", "phpgwAccountVisible", "uid"); 
    142152                                                $sr=@ldap_search($this->ds, $this->ldap_context, $filter, $justthese, 0, $this->max_result+1); 
    143153                                                if(!$sr) 
     
    426436                        } 
    427437                        ldap_close($this->ds);       
    428                  
     438 
    429439                        //Busca em Catalagos externos 
    430440                        $catalogsNum=count($this->external_srcs); 
     
    459469            return $info_return; 
    460470        }  
    461          
    462          
    463          
    464          
    465          
    466          
    467471         
    468472        function make_quicksearch_card($info, $cn) 
Note: See TracChangeset for help on using the changeset viewer.