Ignore:
Timestamp:
03/08/13 14:55:03 (11 years ago)
Author:
cristiano
Message:

Ticket #3378 - Importação automatica de eventos nos participantes

File:
1 edited

Legend:

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

    r7980 r7981  
    14001400 
    14011401    public function deleteCalendarSignatureDependences(&$uri, &$params, &$criteria, $original) { 
    1402         $signature = Controller::read($uri, array('isOwner', 'calendar')); 
     1402        $signature = Controller::read($uri, array('isOwner', 'calendar','user')); 
    14031403 
    14041404        if ($signature['isOwner'] == '1') { 
     
    14161416 
    14171417        $autoCommit = Controller::service('PostgreSQL')->execResultSql('Select config_value FROM phpgw_config WHERE config_app = \'expressoCalendar\' AND config_name = \'expressoCalendar_autoImportCalendars\''); 
     1418 
    14181419        if(isset($autoCommit[0]) && $autoCommit[0]['config_value'] == 'true') 
    14191420        { 
    1420             $defaultCalendar = Controller::find(array('concept' => 'modulePreference'), array('value','id') , array('filter' => array( 'and' , array('=' , 'name' , 'dafaultImportCalendar') , array('=' , 'module' , 'expressoCalendar') , array('=' , 'user' , $original['properties']['user'])  )) ); 
     1421            $defaultCalendar = Controller::find(array('concept' => 'modulePreference'), array('value','id') , array('filter' => array( 'and' , array('=' , 'name' , 'dafaultImportCalendar') , array('=' , 'module' , 'expressoCalendar') , array('=' , 'user' , $signature['user'])  )) ); 
     1422 
     1423 
     1424            self::lg($defaultCalendar); 
    14211425            if(isset($defaultCalendar[0])  && $defaultCalendar[0]['value'] == $signature['calendar'] ) 
    14221426            { 
Note: See TracChangeset for help on using the changeset viewer.