Ignore:
Timestamp:
07/05/12 11:19:47 (12 years ago)
Author:
eduardow
Message:

Ticket #2920 - Erro ao criar setor no Expresso Admin (quotas OU).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.4/expressoAdmin1_2/inc/class.uisectors.inc.php

    r6660 r6713  
    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.