Ignore:
Timestamp:
05/28/12 21:17:51 (12 years ago)
Author:
acoutinho
Message:

Ticket #2795 - Problema ao tentar aceitar convite da agenda para a conta compartilhada

File:
1 edited

Legend:

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

    r6190 r6331  
    9292        if (isset($updated)) { 
    9393            $psUpdated = Controller::find(array('concept' => 'participant'), false, array('deepness' => '1', 'filter' => array('IN', 'id', $updated))); 
     94 
    9495            foreach ($psUpdated as $i => $pUpdated) { 
    9596                if ($pUpdated['isOrganizer'] == '1') 
     
    237238     */ 
    238239    public static function participantDelegatedStatusChange(&$partID, &$schedulable, $organizer, &$type = false) { 
    239  
    240240        $delegatedParams = array(); 
    241241 
     
    270270    } 
    271271 
    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) { 
    273273 
    274274        if ((Config::regGet('ical://' . $schedulable['id'] . '/' . $method) === false) || ($method == 'CANCEL')) { //Verifica se o ical ja não esta no reg 
     
    327327                $part = self::_getAttendeeById($partID, $schedulable); 
    328328                $data['participant'] = isset($part['user']['name']) ? $part['user']['name'] : $part['user']['mail']; 
     329                $partID = $part; 
    329330                break; 
    330331            case 'othersAttendees': 
     
    344345        $subject['endDate'] = date_format($eTime, 'd/m/Y'); 
    345346        $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'); 
    347348    } 
    348349 
     
    379380     * @access     public 
    380381     */ 
    381     public static function participantStatusChange(&$partID, &$schedulable, &$organizer, $type, $delegatedParams = false) { 
     382    public static function participantStatusChange(&$partID, &$schedulable, &$organizer, $type, $delegatedParams = false) {      
    382383        $method = 'REPLY'; 
    383384        $notificationType = 'Convite Aceito'; 
     
    412413        } 
    413414 
    414         self::sendMail($data, $ical, $organizer['user']['mail'], $subject, $tpl, false); 
     415        self::sendMail($data, $ical, $organizer['user']['mail'], $subject, $tpl, $partID); 
    415416    } 
    416417 
Note: See TracChangeset for help on using the changeset viewer.