Changeset 6011


Ignore:
Timestamp:
04/24/12 10:56:43 (12 years ago)
Author:
acoutinho
Message:

Ticket #2650 - Inconsistencias com a repeticao, alguns logs de erros sendo gerados

Location:
trunk/prototype
Files:
2 edited

Legend:

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

    r5998 r6011  
    178178            unset( $repeat['exceptions'] ); 
    179179        } 
    180          
     180 
    181181        $lastExceptions = Controller::find( array( 'concept' => 'repeatOccurrence' ), array("occurrence") , array( 'filter' => array('AND', array( '=', 'repeat', $id ) , array( '=', 'exception', 1 ) ) )); 
    182  
     182         
    183183        //Recurepa as execeções anteriores caso exista 
    184         if(isset($lastExceptions) && count($lastExceptions)) 
     184        if(isset($lastExceptions) && count($lastExceptions) && $lastExceptions) 
    185185            foreach($lastExceptions as $key => $value) 
    186186                array_push($exceptions, $lastExceptions[$key]['occurrence']); 
  • trunk/prototype/services/iCal.php

    r6006 r6011  
    5050                       $eTime = new DateTime( '@'.(int)($v['endTime'] / 1000) , $timezone );   
    5151                       $eTime->setTimezone($apTimezoneOBJ); 
    52                         
    53                        if(isset($v['repeat'])) 
     52 
     53                       if( ( isset($v['repeat']) ) && ( $v['repeat']['frequency'] != 'none' ) ) 
    5454                       { 
    5555                           $repeat = array(); 
Note: See TracChangeset for help on using the changeset viewer.