Changeset 1287 for trunk/contactcenter


Ignore:
Timestamp:
08/06/09 18:13:46 (15 years ago)
Author:
niltonneto
Message:

Ticket #608 - Corrigido falha grave ao procurar grupos pessoais no catálogo.

File:
1 edited

Legend:

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

    r2 r1287  
    6060                                if (!$found) 
    6161                                { 
     62                                         
    6263                                        return $this->sql_find($what, $rules, $other); 
    6364                                } 
     65                                if ($rules and is_array($rules)) 
     66                                { 
     67                                        array_push($rules, array( 
     68                                                'field' => 'group.owner', 
     69                                                'type'  => '=', 
     70                                                'value' => $GLOBALS['phpgw_info']['user']['account_id'] 
     71                                        )); 
     72                                } 
     73                                else 
     74                                { 
     75                                        $rules = array( 
     76                                                0 => array( 
     77                                                        'field' => 'group.owner', 
     78                                                        'type'  => '=', 
     79                                                        'value' => $GLOBALS['phpgw_info']['user']['account_id'] 
     80                                                ) 
     81                                        ); 
     82                                } 
    6483                                                                 
    6584                        } 
    66  
     85                         
    6786                        return $this->sql_find($what, $rules, $other); 
    6887                } 
Note: See TracChangeset for help on using the changeset viewer.