Changeset 7429 for trunk/calendar/inc/class.socalendar_sql.inc.php
- Timestamp:
- 10/16/12 18:24:51 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/calendar/inc/class.socalendar_sql.inc.php
r5399 r7429 942 942 $event['uid'] = $part[0].'-'.$part[1].'@'.$id_suffix; 943 943 } 944 $ this->stream->query('INSERT INTO phpgw_cal(uid,title,owner,priority,is_public,category) '944 $returned_id = $this->stream->query('INSERT INTO phpgw_cal(uid,title,owner,priority,is_public,category) ' 945 945 . "values('".$event['uid']."','".$this->stream->db_addslashes($event['title']) 946 946 . "',".(int)$event['owner'].','.(int)$event['priority'].','.(int)$event['public'].",'" 947 . $event['category']."')",__LINE__,__FILE__); 948 $event['id'] = $this->stream->get_last_insert_id('phpgw_cal','cal_id'); 947 . $event['category']."') RETURNING cal_id",__LINE__,__FILE__); 948 949 // get_last_insert_id não funciona direito com Postgres 9 950 $event['id'] = $returned_id->fields['cal_id']; //$this->stream->get_last_insert_id('phpgw_cal','cal_id'); 949 951 $last_status = true; 950 952 } … … 1098 1100 $importAccount['mail'] = $GLOBALS['phpgw_info']['user']['email']; 1099 1101 1100 //verifica se eh um evento externo se sim envia o vcard de aceita ção em anexo1102 //verifica se eh um evento externo se sim envia o vcard de aceitação em anexo 1101 1103 if($event['owner'] == '-2') 1102 1104 {
Note: See TracChangeset
for help on using the changeset viewer.