Ignore:
Timestamp:
07/02/12 16:55:44 (12 years ago)
Author:
cristiano
Message:

Ticket #2665 - Erro ao criar setor no Expresso Admin - erros de coficação

Location:
trunk/expressoAdmin1_2/inc
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoAdmin1_2/inc/class.bosectors.inc.php

    r6686 r6697  
    6060                        if ($_POST['sector_visible']) 
    6161                        { 
    62                                 $sector_info['objectClass'][2]  = 'phpgwAccount'; 
     62                                $sector_info['objectClass'][]   = 'phpgwAccount'; 
    6363                                $sector_info['phpgwaccountvisible'] = '-1'; 
    6464                        } 
     
    150150                        $manager_context = $_POST['manager_context']; 
    151151 
    152                         $sector_dn = utf8_encode($sector_dn); 
     152                        $sector_dn = $sector_dn; 
    153153 
    154154                        $sector_users = $this->so->get_sector_users($sector_dn); 
  • trunk/expressoAdmin1_2/inc/class.functions.inc.php

    r6553 r6697  
    538538  
    539539                reset ( $array_dn );  
    540                 $display .= ' ' . (current ( $array_dn ) );  
     540                $display .= ' ' . urldecode( str_replace('\\', '%', current ( $array_dn )));  
    541541                                  
    542542                                $info_retorno['display'] = $display;  
  • trunk/expressoAdmin1_2/inc/class.uisectors.inc.php

    r6553 r6697  
    105105                                        );       
    106106                                         
    107                                         $var['sector_name'] = utf8_decode($var['sector_name']); 
     107                                        $var['sector_name'] =  utf8_decode($var['sector_name']); 
    108108 
    109109                                                                         
     
    233233 
    234234                        $combo_manager_org = substr( $combo_manager_org, 0, ( strpos($combo_manager_org, '</option>') + 9 ) ); 
    235  
    236                         $a_tmp = explode(",", ldap_dn2ufn($context)); 
    237                         $sector_name = $a_tmp[0]; 
     235                        $combo_manager_org =utf8_decode($combo_manager_org); 
     236                        $a_tmp = explode(",", $context);  
     237                        $sector_name = utf8_decode( str_replace('ou=' , '' ,$a_tmp[0])); 
    238238                         
    239239                        // Verifica se tem acesso a este modulo 
     
    255255                        if (!$_POST) 
    256256                        { 
    257                                 $sector_info = $this->so->get_info($context); 
     257                                $sector_info = $this->so->get_info($_GET['context']); 
    258258                                $sector_disk_quota = $sector_info[0]['diskquota'][0];  
    259259                                $sector_users_quota = $sector_info[0]['usersquota'][0];  
     
    299299                function view_cota()  
    300300                {  
    301                         $context = $_GET['context'];  
    302                         $a_tmp = explode(",", ldap_dn2ufn($context));  
     301                        $context = utf8_decode($_GET['context']);  
     302                        $a_tmp = explode(",", $context);  
    303303  
    304                         $sector_name = $a_tmp[0];  
     304                        $sector_name = str_replace('ou=' , '' ,$a_tmp[0]);  
    305305                        if($this->functions->db_functions->use_cota_control()) {  
    306                                 $sector_info = $this->so->get_info($context);  
     306                                $sector_info = $this->so->get_info($_GET['context']);  
    307307                                $sector_disk_cota = $sector_info[0]['diskquota'][0];  
    308308                                $sector_users_cota = $sector_info[0]['usersquota'][0];  
     
    442442                                'sectors_list'                          => $subsectors_list  
    443443                        ); 
    444                         $var['sector_name'] = preg_replace("/\\\([0-9A-Fa-f]{2})/e", "''.chr(hexdec('\\1')).''",$var['sector_name']); 
     444                        $var['sector_name'] =utf8_decode( preg_replace("/\\\([0-9A-Fa-f]{2})/e", "''.chr(hexdec('\\1')).''",$var['sector_name'])); 
    445445 
    446446                        $p->set_var($var); 
Note: See TracChangeset for help on using the changeset viewer.