Ignore:
Timestamp:
02/16/12 15:41:57 (12 years ago)
Author:
cristiano
Message:

Ticket #2434 - Compatibilidade de ics com outlook2000 e tamnho de textarea incorreto

File:
1 edited

Legend:

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

    r5514 r5523  
    153153                $data['userRequest'] = Config::me('uid'); 
    154154                 
     155                $ical2 = $ical; 
     156                $ical2['type'] = 'text/calendar';  
     157                $ical2['name'] = 'thunderbird.ics'; 
     158                $params['attachments'][] = $ical2; 
    155159                $params['attachments'][] = $ical; 
    156160                $params['isHtml'] = true;                          
     
    179183                if($params['status'] == 'DECLINECOUNTER') 
    180184                        $data['status'] = 'não pode ser aceito'; 
    181                          
     185                                $ical2 = $ical; 
     186                $ical2['type'] = 'text/calendar';  
     187                $ical2['name'] = 'thunderbird.ics'; 
     188                $params['attachments'][] = $ical2;       
    182189                $params['attachments'][] = $ical; 
    183190                $params['isHtml'] = true;                          
     
    271278                        $schedulable['URI']['concept'] = 'schedulable'; 
    272279                        $ical['source'] = Controller::format( array( 'service' => 'iCal' ) , array($schedulable) , array('method' => $method) );   
    273                         $ical['type'] = 'text/calendar'; 
    274                         $ical['name'] = 'calendar.ics'; 
     280                        $ical['type'] = 'text/plain'; 
     281                        $ical['name'] = 'outlook.ics'; 
    275282                        if($regSet) 
    276283                                Config::regSet('ical://'.$schedulable['id'].'/'.$method, $ical); 
     
    420427    private static function sendMail(&$data , &$ical , $to ,  &$subject , $template ) 
    421428    {  
     429       $ical2 = $ical; 
     430       $ical2['type'] = 'text/calendar';  
     431       $ical2['name'] = 'thunderbird.ics'; 
     432       $mail['attachments'][] = $ical2; 
    422433       $mail['attachments'][] = $ical; 
    423434       $mail['isHtml'] = true;                          
Note: See TracChangeset for help on using the changeset viewer.