Changeset 6183


Ignore:
Timestamp:
05/14/12 22:52:20 (12 years ago)
Author:
natan
Message:

Ticket #2730 - Inconsistências na alteração de eventos

Location:
trunk/prototype/modules/calendar/interceptors
Files:
2 edited

Legend:

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

    r6177 r6183  
    99 
    1010    public function encodeCreateSchedulable(&$uri, &$params, &$criteria, $original) { 
     11        self::encodeSchedulable($params); 
     12    } 
     13 
     14    static function encodeSchedulable(&$params) { 
    1115        $params['type_id'] = EVENT_ID; 
    1216 
     
    3135        $params['lastUpdate'] = (isset($params['lastUpdate'])) ? $params['lastUpdate'] : time() . '000'; 
    3236        $params['type'] = EVENT_ID; 
    33         $params['uid'] = isset($params['uid']) ? $params['uid'] : $this->_makeUid(); 
     37        $params['uid'] = isset($params['uid']) ? $params['uid'] : self::_makeUid(); 
    3438    } 
    3539 
     
    922926    } 
    923927 
    924     private function _makeUid() { 
     928    private static function _makeUid() { 
    925929 
    926930        $date = date('Ymd\THisT'); 
  • trunk/prototype/modules/calendar/interceptors/Notifications.php

    r6177 r6183  
    503503        $alt = false; 
    504504 
     505//      DBMapping::encodeSchedulable($params); 
     506 
    505507        foreach ($params as $i => $v) //Verifica se ouve alteração no evento 
    506508            if (isset($schedulableOld[$i]) && $schedulableOld[$i] != $v && $i != 'participants') { 
     
    508510                $alt = true; 
    509511            } 
    510  
     512self::lg( $schedulable, '$schedulable' ); 
    511513        if (($alt === true) && (Config::regGet('noAlarm') === false) && (self::futureEvent($schedulable['startTime'], $schedulable['rangeEnd'], $schedulable['id']))) { 
    512514            $method = 'REQUEST'; 
Note: See TracChangeset for help on using the changeset viewer.