- Timestamp:
- 10/08/13 16:20:46 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.5/prototype/modules/calendar/interceptors/Notifications.php
r8003 r8232 34 34 if (Config::regGet('noAlarm') !== false) 35 35 return; //Escapa notificações caso a flag de noAlarm esteja ativa. 36 37 36 37 38 38 39 39 $organizers = array(); //Cache Organizadores … … 99 99 $psUpdated = Controller::find(array('concept' => 'participant'), false, array('deepness' => '1', 'filter' => array('IN', 'id', $updated))); 100 100 101 101 102 102 foreach ($psUpdated as $i => $pUpdated) { 103 103 if ($pUpdated['isOrganizer'] == '1' && $pUpdated['delegatedFrom'] == '0'){ … … 491 491 492 492 if (count($part) > 0) 493 { 494 $from = false; 495 foreach($schedulable['participants'] as $v) 496 { 497 if($v['isOrganizer'] == 1) 498 $from = $v; 499 } 500 501 self::sendMail($data, $ical, implode(',', $part), $subject, 'notify_cancel_body' , $from ); 502 } 493 { 494 $from = false; 495 foreach($schedulable['participants'] as $v) 496 { 497 if($v['isOrganizer'] == 1) 498 $from = $v; 499 } 500 501 self::sendMail($data, $ical, implode(',', $part), $subject, 'notify_cancel_body' , $from ); 502 } 503 503 } 504 504 } … … 522 522 $method = 'CANCEL'; 523 523 $notificationType = 'Cancelamento de Calendario'; 524 $part = 'me'; 525 self::mountStruture($schedulable['id'], $schedulable, false, $data, $subject, $ical, $part, $method, $notificationType); 526 527 $from = false; 528 foreach($schedulable['participants'] as $v) 529 { 530 if($v['isOrganizer'] == 1) 531 $from = $v; 532 } 533 self::sendMail($data, $ical, $participant['user']['mail'], $subject, 'notify_cancel_body' , $from);524 $part = 'me'; 525 self::mountStruture($schedulable['id'], $schedulable, false, $data, $subject, $ical, $part, $method, $notificationType); 526 527 $from = false; 528 foreach($schedulable['participants'] as $v) 529 { 530 if($v['isOrganizer'] == 1) 531 $from = $v; 532 } 533 self::sendMail($data, $ical, $participant['user']['mail'], $subject, 'notify_cancel_body' , $from); 534 534 } 535 535 }
Note: See TracChangeset
for help on using the changeset viewer.