Ignore:
Timestamp:
02/10/10 12:31:28 (14 years ago)
Author:
valmir.sena
Message:

Ticket #906 - Editar Setor no expressoAdmin não desmarca a opção de ocultar Setor

File:
1 edited

Legend:

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

    r1991 r1996  
    9797                } 
    9898 
    99                 function save_sector() 
     99        function save_sector() 
    100100                { 
    101101                        $sector_info = $this->so->get_info($_POST['context']); 
    102102                         
    103                         if (($_POST['sector_visible'] == 'on') && ($sector_info['phpgwaccountvisible'] != '-1')) 
     103                        if (($_POST['sector_visible'] == 'on') && ($sector_info[0]['phpgwaccountvisible'][0] != '-1')) 
    104104                        { 
    105105                                foreach ($sector_info[0]['objectclass'] as $objectClass) 
     
    119119                                $this->so->add_attribute($sector_info[0]['dn'], $ldap_mod_add); 
    120120                        } 
    121                         elseif($sector_info['phpgwaccountvisible'] == '-1') 
     121                        elseif($sector_info[0]['phpgwaccountvisible'][0] == '-1') 
    122122                        { 
    123123                                $ldap_mod_del['objectClass'] = 'phpgwAccount'; 
Note: See TracChangeset for help on using the changeset viewer.