Ignore:
Timestamp:
07/19/12 17:51:47 (10 years ago)
Author:
eduardow
Message:

Ticket #2965 - Problema com a hora ao importar evento em Outlook.

File:
1 edited

Legend:

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

    r6754 r6826  
    276276        if ((Config::regGet('ical://' . $schedulable['id'] . '/' . $method) === false) || ($method == 'CANCEL')) { //Verifica se o ical ja não esta no reg 
    277277            $schedulable['URI']['concept'] = 'schedulable'; 
    278             $ical['source'] = Controller::format(array('service' => 'iCal'), array($schedulable), array('method' => $method)); 
    279             $ical['type'] = 'text/plain'; 
    280             $ical['name'] = 'outlook.ics'; 
     278            $ical = Controller::format(array('service' => 'iCal'), array($schedulable), array('method' => $method , 'compatible' => true )); 
    281279            if ($regSet) 
    282280                Config::regSet('ical://' . $schedulable['id'] . '/' . $method, $ical); 
     
    429427     */ 
    430428    private static function sendMail(&$data, &$ical, $to, &$subject, $template, $from = false) { 
    431         $ical2 = $ical; 
     429         
     430 
     431        $ical1['type'] = 'text/plain';  
     432        $ical1['source'] = $ical['compatible'];  
     433        $ical1['name'] = 'outlook.ics';  
     434        $ical2['source'] = $ical['ical'];  
    432435        $ical2['type'] = 'text/calendar'; 
    433436        $ical2['name'] = 'thunderbird.ics'; 
     437 
     438        unset($ical); 
    434439        $mail['attachments'][] = $ical2; 
    435         $mail['attachments'][] = $ical; 
     440        $mail['attachments'][] = $ical1;  
     441        unset($ical1);  
     442        unset($ical2);  
    436443        $mail['isHtml'] = true; 
    437444        $mail['body'] = parseTPL::load_tpl($data, ROOTPATH . '/modules/calendar/templates/' . $template . '.tpl'); 
Note: See TracChangeset for help on using the changeset viewer.