Changeset 5780


Ignore:
Timestamp:
03/21/12 17:32:56 (12 years ago)
Author:
acoutinho
Message:

Ticket #2434 - Corrigido inconsistencia de importar eventos com participacao obrigatoria no expressoMail

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/js/main.js

    r5771 r5780  
    33753375                                                switch(parseInt(typeImport)){ 
    33763376                                                case 1: 
     3377                                                case 7: 
    33773378                                                        $("#select-agenda").html(''); 
    33783379                                                                for(var id in Calendar.calendars){ 
     
    34033404                                                                        } 
    34043405                                                                 }); 
     3406                                                                  
     3407                                                                 if(typeImport == 7){ 
     3408                                                                     $("#import-dialog").find('#select-status option[value=1]').attr('selected','selected').trigger('change'); 
     3409                                                                     $("#import-dialog").find('#select-status').attr('disabled','disabled'); 
     3410                                                                 } 
    34053411                                                        break; 
    34063412                                                case 2: 
  • trunk/prototype/modules/calendar/constants.php

    r5592 r5780  
    2828define('ICAL_ACTION_REPLY', 5); 
    2929define('ICAL_ACTION_SUGGESTION', 6); 
     30define('ICAL_ACTION_IMPORT_REQUIRED', 7); 
    3031 
    3132define('ATTENDEE_ACL_ORGANIZATION', 'o'); 
    32 define('ATTENDEE_ACL_WRITE', 2); 
    33 define('ATTENDEE_ACL_PARTICIPATION_REQUIRED', 'w'); 
     33define('ATTENDEE_ACL_WRITE', 'w'); 
     34define('ATTENDEE_ACL_PARTICIPATION_REQUIRED', 'p'); 
    3435define('ATTENDEE_ACL_INVITE_GUESTES', 'i'); 
    3536define('ATTENDEE_ACL_READ', 'r'); 
  • trunk/prototype/services/iCal.php

    r5736 r5780  
    477477        public function analize ( $data , $params = false) 
    478478        { 
    479                         $vcalendar = new icalCreator( );  
     479            $vcalendar = new icalCreator( );  
    480480            $vcalendar->parse(trim($data));  
    481481            $vcalendar->sort();          
     
    503503                                 if($schedulable ) //Caso o evento exista 
    504504                                 { 
    505                                     if(!self::_existInMyCalendars($schedulable['id'])) 
    506                                           $interation = ICAL_ACTION_IMPORT;    
    507                                     else 
     505                                    if(!self::_existInMyCalendars($schedulable['id'])){ 
     506                                        foreach($schedulable['participants'] as $value) 
     507                                            if($value['user']['id'] == Config::me('uidNumber')){ 
     508                                                $interation = ( strrpos($value['acl'], ATTENDEE_ACL_PARTICIPATION_REQUIRED) ) ? ICAL_ACTION_IMPORT_REQUIRED : ICAL_ACTION_IMPORT; 
     509                                                break; 
     510                                            }                                    
     511                                    }else 
    508512                                    { 
    509513                                        if( self::_getTime($component , 'dtstamp') > $schedulable['dtstamp'] || $component->getProperty( 'sequence' , false , false ) > $schedulable['sequence']) //Organizador esta requisitando que você atualize o evento 
Note: See TracChangeset for help on using the changeset viewer.