Changeset 7357 for trunk


Ignore:
Timestamp:
10/06/12 17:44:33 (12 years ago)
Author:
acoutinho
Message:

Ticket #3143 - Problema ao copiar Evento ou Tarefa, status dos participantes

File:
1 edited

Legend:

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

    r7259 r7357  
    25242524                        ['AND',  
    25252525                            ['>=', 'rangeEnd', rangeStart],  
    2526                             ['<=', 'rangeEnd', rangeEnd] ,  
     2526                            ['<=', 'rangeEnd', rangeEnd] 
    25272527                        ], 
    25282528                        ['AND',  
    25292529                            ['>=', 'rangeStart', rangeStart],  
    2530                             ['<=', 'rangeStart', rangeEnd] ,  
     2530                            ['<=', 'rangeStart', rangeEnd] 
    25312531                        ], 
    25322532                        ['AND',  
    25332533                            ['<=', 'rangeStart', rangeStart],  
    2534                             ['>=', 'rangeEnd', rangeEnd] ,  
     2534                            ['>=', 'rangeEnd', rangeEnd] 
    25352535                        ] 
    25362536                    ], 
     
    27852785         
    27862786    calendar = !!calendar ? calendar : schedulable.calendar; 
     2787 
     2788    owner = decodeOwnerCalendar(calendar); 
    27872789         
    27882790    if(typeof(schedulable) == "array") 
     
    28462848        var participants = DataLayer.copy(schedulable.participants); 
    28472849        delete schedulable.participants; 
    2848                  
     2850 
     2851    if(schedulable['type'] == '2') 
     2852        delete schedulable['historic']; 
     2853 
    28492854        schedulable.participants =  $.map( participants, function( attendee, i ){ 
    28502855                         
     
    28522857                         
    28532858            if(typeof(participant) == 'array') 
    2854                 participant = participant[0]; 
     2859                    participant = participant[0]; 
     2860 
     2861        if(owner.id != participant.user) 
     2862            delete participant.status; 
    28552863         
    28562864            delete participant.delegatedFrom; 
Note: See TracChangeset for help on using the changeset viewer.