Ignore:
Timestamp:
05/14/12 16:15:42 (12 years ago)
Author:
acoutinho
Message:

Ticket #2727 - Quando criado evento com repeticoes com a hora data ou hora menor que a hora atual

File:
1 edited

Legend:

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

    r6160 r6177  
    554554//TODO: Remover apos suporte a deepness na api 
    555555    public function deepnessReadParticipant( &$uri , &$result , &$criteria , $original ){ 
    556  
     556         
     557         
    557558       if(isset($original['criteria']['deepness']) && $original['criteria']['deepness'] != 0) 
    558559       { 
     
    565566            } 
    566567       } 
    567  
     568        
     569       
     570        
    568571   }  
    569572 
    570573    //TODO: Remover apos suporte a deepness na api  
    571574    public function deepnessReadEvent( &$uri , &$result , &$criteria , $original ){              
    572         
     575     
    573576       if(isset($original['criteria']['deepness']) && $original['criteria']['deepness'] != 0) 
    574577       { 
    575578            if(isset($result['id'])) 
    576579            { 
    577                 $result['participants'] = Controller::find( array( 'concept' => 'participant' ) , false ,array( 'filter' => array('=' ,  'schedulable' ,  $result['id']), 'criteria' => array('deepness' => $original['criteria']['deepness'] - 1) ));  
     580                $result['participants'] = Controller::find( array( 'concept' => 'participant' ) , false ,array( 'filter' => array('=' ,  'schedulable' ,  $result['id']), 'deepness' => $original['criteria']['deepness'] - 1) );  
    578581 
    579582                $repeat =  Controller::find( array( 'concept' => 'repeat' ), false, array( 'filter' => array( '=', 'schedulable', $result['id'] ) ) ); 
     
    581584                if(is_array($repeat)) 
    582585                    $result['repeat'] = $repeat[0]; 
    583             } 
     586            }  
     587             
    584588       } 
    585589   }  
     
    587591    //TODO: Remover apos suporte a deepness na api  
    588592    public function deepnessFindParticipant( &$uri , &$result , &$criteria , $original ){ 
    589  
    590593       if(isset($original['criteria']['deepness']) && $original['criteria']['deepness'] != 0) 
    591594       { 
     
    593596           { 
    594597                self::deepnessReadParticipant( $uri, $v, $criteria, $original ); 
    595            } 
    596        } 
     598           } 
     599       }   
    597600        
    598601   }  
Note: See TracChangeset for help on using the changeset viewer.