- Timestamp:
- 05/28/12 21:17:51 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/prototype/modules/calendar/interceptors/Notifications.php
r6190 r6331 92 92 if (isset($updated)) { 93 93 $psUpdated = Controller::find(array('concept' => 'participant'), false, array('deepness' => '1', 'filter' => array('IN', 'id', $updated))); 94 94 95 foreach ($psUpdated as $i => $pUpdated) { 95 96 if ($pUpdated['isOrganizer'] == '1') … … 237 238 */ 238 239 public static function participantDelegatedStatusChange(&$partID, &$schedulable, $organizer, &$type = false) { 239 240 240 $delegatedParams = array(); 241 241 … … 270 270 } 271 271 272 public static function mountStruture( $partID, &$schedulable, $type = false, &$data, &$subject, &$ical, &$part = false, &$method, &$notificationType, $regSet = false) {272 public static function mountStruture(&$partID, &$schedulable, $type = false, &$data, &$subject, &$ical, &$part = false, &$method, &$notificationType, $regSet = false) { 273 273 274 274 if ((Config::regGet('ical://' . $schedulable['id'] . '/' . $method) === false) || ($method == 'CANCEL')) { //Verifica se o ical ja não esta no reg … … 327 327 $part = self::_getAttendeeById($partID, $schedulable); 328 328 $data['participant'] = isset($part['user']['name']) ? $part['user']['name'] : $part['user']['mail']; 329 $partID = $part; 329 330 break; 330 331 case 'othersAttendees': … … 344 345 $subject['endDate'] = date_format($eTime, 'd/m/Y'); 345 346 $subject['endTime'] = ($schedulable['allDay']) ? '' : date_format($eTime, 'H:i'); 346 $subject['participant'] = Config::me('uid');347 $subject['participant'] = (is_array($partID) && isset($partID['user']) )? $partID['user']['uid'] : Config::me('uid'); 347 348 } 348 349 … … 379 380 * @access public 380 381 */ 381 public static function participantStatusChange(&$partID, &$schedulable, &$organizer, $type, $delegatedParams = false) { 382 public static function participantStatusChange(&$partID, &$schedulable, &$organizer, $type, $delegatedParams = false) { 382 383 $method = 'REPLY'; 383 384 $notificationType = 'Convite Aceito'; … … 412 413 } 413 414 414 self::sendMail($data, $ical, $organizer['user']['mail'], $subject, $tpl, false);415 self::sendMail($data, $ical, $organizer['user']['mail'], $subject, $tpl, $partID); 415 416 } 416 417
Note: See TracChangeset
for help on using the changeset viewer.