Ignore:
Timestamp:
01/24/12 17:22:37 (12 years ago)
Author:
cristiano
Message:

Ticket #2434 - Correções no importar ical

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/prototype/modules/calendar/js/calendar.codecs.js

    r5409 r5415  
    415415                                         
    416416                                        if( attend.user.id ===  me.id ){ 
    417                                             participantInfo = { 
     417                                            participantInfo.user = { 
    418418                                                        status : attend.status, 
    419419                                                        alarms : $.map(attend.alarms || [], function( alarm ){ 
     
    422422                                                }; 
    423423                                                me.id = attend.id; 
     424                                                return(null); 
    424425                                        }; 
    425426                                         
     
    433434                                        if( !!parseInt(attend.isOrganizer )){ 
    434435                                                isOrganizer = ((attend.user.id == User.me.id) || (!!!attend.user)) ? 1 : 0; 
    435                                             participantInfo.organizer = person; 
     436                                            participantInfo.organizer = DataLayer.copy(person); 
    436437                                                return(null); 
    437438                                        };                                       
     
    440441                                }), 
    441442                            organizer: participantInfo.organizer || me, 
    442                             alarms: participantInfo.alarms || [], 
    443                             status: participantInfo.status || 1, 
     443                            alarms: !!participantInfo.user ?  participantInfo.user.alarms : [], 
     444                            status: !!participantInfo.user ? participantInfo.user.status : 1, 
    444445                            me: me, 
    445446                                isOrganizer: isOrganizer, 
Note: See TracChangeset for help on using the changeset viewer.