- Timestamp:
- 01/13/12 09:10:28 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/prototype/modules/calendar/interceptors/DBMapping.php
r5366 r5376 372 372 373 373 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'])) ) ); 375 375 } 376 376 $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 } 381 378 382 379 } … … 401 398 $participants[$ii]['user'] = Controller::read( array( 'concept' => 'user' , 'id' => $vv['user'] )); 402 399 403 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 } 406 403 407 404 $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 } 411 406 } 412 407
Note: See TracChangeset
for help on using the changeset viewer.