Ignore:
Timestamp:
09/17/10 12:19:10 (14 years ago)
Author:
rafaelraymundo
Message:

Ticket #1319 - Possibilidade de erro na pesquisa do ContacCenter?

Location:
branches/2.2/contactcenter
Files:
3 edited

Legend:

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

    r3211 r3262  
    595595                                return false; 
    596596                        } 
     597 
     598                        //Alteração feita especificamente para tratar problema da montagem do $id_contact 
    597599                        if(!$external) 
     600                        { 
     601                                if($this->src_info['montaDN'] == "true") 
     602                                { 
    598603                                $id_contact = preg_replace("/dc=(.*)/i",$this->src_info['dn'],$id_contact); 
     604                                } 
     605                        } 
    599606                         
    600607                        $resource = @ldap_read($ldap, $id_contact, 'objectClass='.$this->src_info['obj']); 
     
    975982                                                                $l_fields['empNumber']     = $this->trans_table['contact.business_info.empNumber']; 
    976983                                                        } 
    977                                                         //Relaciona o array com o atributo 'mobile' do RHDS 
    978                                                         $l_fields['celPhone']     = $this->trans_table['contact.business_info.celPhone']; 
    979984 
    980985                                                        //Relaciona o array com o atributo 'mobile' do RHDS 
  • branches/2.2/contactcenter/inc/class.bo_ldap_manager.inc.php

    r1600 r3262  
    3838                                } 
    3939                                 
     40                                $ou = ''; 
     41                                if($data['cc_ldap_subLevels'] == "true") 
     42                                { 
     43                                        $ou = strtolower('ou'); 
     44                                } 
     45 
    4046                                $this->srcs = array( 
    4147                                        1 => array( 
     
    4652                                                'pw'     => $data['cc_ldap_pw0'], 
    4753                                                'obj'    => 'inetOrgPerson', 
    48                                                 'branch' => strtolower('ou'), 
     54                                                'branch' => $ou, //strtolower('ou'), 
     55                                                'montaDN'       => $data['cc_ldap_subLevels'], 
    4956                                                'visible' => $data['cc_ldap_query_automatic'] 
    5057                                        ) 
  • branches/2.2/contactcenter/templates/default/config.tpl

    r1598 r3262  
    6767                                <option value="3" {selected_cc_ldap_min_3}>3</option> 
    6868                                <option value="4" {selected_cc_ldap_min_4}>4</option> 
     69                        </select> 
     70                </td> 
     71        </tr> 
     72        <tr class="row_off"> 
     73                <td>Montar DN do contatos dinamicamente?</td> 
     74                <td> 
     75                        <select name="newsettings[cc_ldap_subLevels]"> 
     76                                <option value="true" {selected_cc_ldap_subLevels_true}>Sim</option> 
     77                                <option value="false" {selected_cc_ldap_subLevels_false}>Não</option> 
    6978                        </select> 
    7079                </td> 
Note: See TracChangeset for help on using the changeset viewer.