Ignore:
Timestamp:
04/17/09 16:34:36 (15 years ago)
Author:
niltonneto
Message:

Resolve #453 e #454 (duplicado).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/contactcenter/inc/class.bo_contactcenter.inc.php

    r498 r752  
    350350                        if($_SESSION['phpgw_info']['user']['preferences']['contactcenter']['shared_contacts']){ 
    351351                                $this->tree[2] = array('type' => 'sql'); 
    352                                 $this->tree['branches'][2] = array('name' => lang('Shared'), 
    353                                                                                 'type'       => 'catalog', 
    354                                                                                 'class'      => 'bo_shared_catalog_manager', 
     352                                $this->tree['branches'][2] = array( 
     353                                                                                'name' => lang('Shared'), 
     354                                                                                'type'       => 'mixed_catalog_group', 
     355                                                                                'class'      => 'bo_shared_people_manager', 
    355356                                                                                'icon'       => 'people-mini.png', 
    356                                                                                 'sub_branch' => false); 
     357                                                                                'sub_branch' => array(  
     358                                                                                        0 =>    array(   
     359                                                                                                'name'  => lang('People'), 
     360                                                                                                'type'  => 'catalog', 
     361                                                                                                'class' => 'bo_shared_people_manager', 
     362                                                                                                'icon'  => 'people-mini.png', 
     363                                                                                                'sub_branch' => False 
     364                                                                                        ), 
     365                                                                                        1 =>    array(   
     366                                                                                                'name'  => lang('Groups'), 
     367                                                                                                'type'  => 'catalog', 
     368                                                                                                'class' => 'bo_shared_group_manager', 
     369                                                                                                'icon'  => 'people-mini.png', 
     370                                                                                                'sub_branch' => False 
     371                                                                                        ) 
     372                                                                                ) 
     373                                                        ); 
    357374                                unset($_SESSION['phpgw_info']['user']['preferences']['contactcenter']['shared_contacts']); 
    358375                        } 
     
    419436                                        $i++; 
    420437                                } 
    421                         } 
    422                          
     438                        }        
    423439                        $GLOBALS['phpgw']->session->appsession('bo_contactcenter.tree','contactcenter',$this->tree); 
    424440                        return $this->tree['branches']; 
     
    599615                                        $level = $this->get_level_by_branch($catalog, $this->tree['branches']); 
    600616                                        $catalog =& $this->get_catalog_tree($level); 
    601  
     617                                 
    602618                                case 'catalog': 
    603619                                case 'catalog_group': 
Note: See TracChangeset for help on using the changeset viewer.