Changeset 5415 for trunk/prototype/modules/calendar
- Timestamp:
- 01/24/12 17:22:37 (12 years ago)
- Location:
- trunk/prototype/modules/calendar
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/prototype/modules/calendar/constants.php
r5341 r5415 23 23 define('CLASS_CONFIDENTIAL', 3); 24 24 25 26 define('ICAL_ACTION_IMPORT', 1); 27 define('ICAL_ACTION_UPDATE', 2); 28 define('ICAL_ACTION_DELETE', 3); 29 define('ICAL_ACTION_NONE', 4); 30 define('ICAL_ACTION_REPLY', 5); 31 25 32 ?> -
trunk/prototype/modules/calendar/interceptors/DBMapping.php
r5399 r5415 24 24 'lastUpdate' => 'last_update', 25 25 'dtstamp' => 'dtstamp', 26 'sequence' => 'sequence', 26 27 'timezone' => 'tzid'); 27 28 … … 287 288 288 289 public function encodeUpdateSchedulable( &$uri , &$params , &$criteria , $original ){ 289 if(isset($params[' rangeStart']))290 if(isset($params['startTime'])) 290 291 $params['rangeStart'] = gmdate( 'd-m-Y' , (int)($params['startTime'] / 1000) ); 291 if(isset($params[' rangeEnd']))292 if(isset($params['endTime'])) 292 293 $params['rangeEnd'] = gmdate( 'd-m-Y' , (int)($params['endTime'] / 1000) ); 293 294 … … 679 680 $newCriteria = $original['criteria']; 680 681 $valid = true; 681 self::validExternalUserCriteria($newCriteria , self::$calendar_ex_participantMap, $valid);682 self::validExternalUserCriteria($newCriteria['filter'], self::$calendar_ex_participantMap, $valid); 682 683 if($valid == true) 683 684 { … … 979 980 if (!is_array($filter) || count($filter) <= 0) 980 981 return null; 981 982 982 983 $op = array_shift($filter); 983 984 … … 985 986 foreach ($filter as $i => $f) 986 987 $filter[$i] = self::validExternalUserCriteria($f, $map ,$findCalendar ); 987 988 989 { 988 } 989 else 990 { 990 991 if( isset($filter[0]) && !in_array($filter[0] , self::$calendar_ex_participantMap)) 991 992 $ref = false; … … 994 995 $filter[0] = isset($map[$filter[0]]) ? $map[$filter[0]] : $filter[0]; 995 996 } 996 997 array_unshift($filter, $op); 998 997 999 998 return( $filter ); 1000 999 } -
trunk/prototype/modules/calendar/js/calendar.codecs.js
r5409 r5415 415 415 416 416 if( attend.user.id === me.id ){ 417 participantInfo = {417 participantInfo.user = { 418 418 status : attend.status, 419 419 alarms : $.map(attend.alarms || [], function( alarm ){ … … 422 422 }; 423 423 me.id = attend.id; 424 return(null); 424 425 }; 425 426 … … 433 434 if( !!parseInt(attend.isOrganizer )){ 434 435 isOrganizer = ((attend.user.id == User.me.id) || (!!!attend.user)) ? 1 : 0; 435 participantInfo.organizer = person;436 participantInfo.organizer = DataLayer.copy(person); 436 437 return(null); 437 438 }; … … 440 441 }), 441 442 organizer: participantInfo.organizer || me, 442 alarms: participantInfo.alarms ||[],443 status: participantInfo.status ||1,443 alarms: !!participantInfo.user ? participantInfo.user.alarms : [], 444 status: !!participantInfo.user ? participantInfo.user.status : 1, 444 445 me: me, 445 446 isOrganizer: isOrganizer,
Note: See TracChangeset
for help on using the changeset viewer.