Ignore:
Timestamp:
01/13/12 09:10:28 (12 years ago)
Author:
acoutinho
Message:

Ticket #2434 - Estabilizacao da nova api, correcoes de bug e melhorias na nova agenda

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/prototype/modules/calendar/interceptors/DBMapping.php

    r5366 r5376  
    372372                     
    373373                        if($participants[$ii]['user']['id'] == Config::me('uidNumber')) 
    374                             $participantLog = $vv['id'];  
     374                           $participants[$ii]['alarms'] = Controller::find( array( 'concept' => 'alarm' ) , null , array('filter' => array('AND' , array('=', 'participant' ,$vv['id'] ) ,array('=' , 'schedulable', $v['id'])) ) );  
    375375                    }        
    376376                    $result[$i]['participants'] = $participants; 
    377                 } 
    378                  
    379                 if(isset($participantLog)) 
    380                     $result[$i]['alarms'] = Controller::find( array( 'concept' => 'alarm' ) , null , array('filter' => array('AND' , array('=', 'participant' ,$participantLog ) ,array('=' , 'schedulable', $v['id'])) ) ); 
     377                }                
    381378                 
    382379           } 
     
    401398                           $participants[$ii]['user'] = Controller::read( array( 'concept' => 'user' , 'id' => $vv['user'] )); 
    402399 
    403                          if($participants[$ii]['user']['id'] == Config::me('uidNumber')) 
    404                             $participantLog = $vv['id'];  
    405                      
     400                        if($participants[$ii]['user']['id'] == Config::me('uidNumber')) 
     401                           $participants[$ii]['alarms'] = Controller::find( array( 'concept' => 'alarm' ) , null , array('filter' => array('AND' , array('=', 'participant' ,$vv['id'] ) ,array('=' , 'schedulable', $result['id'])) ) );  
     402                
    406403 
    407404                $result['participants'] = $participants; 
    408                 if(isset($participantLog)) 
    409                     $result['alarms'] = Controller::find( array( 'concept' => 'alarm' ) , null , array('filter' => array('AND' , array('=', 'user' , $participantLog ) ,array('=' , 'schedulable', $result['id'])) ) ); 
    410             } 
     405                } 
    411406       } 
    412407 
Note: See TracChangeset for help on using the changeset viewer.