mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 12:39:25 +01:00
* Calendar: added deleted timestamp to history, to be able to see who deleted an event and when
This commit is contained in:
parent
aff68492e1
commit
01143f4b76
@ -59,6 +59,7 @@ class calendar_tracking extends bo_tracking
|
|||||||
|
|
||||||
'start' => 'start',
|
'start' => 'start',
|
||||||
'end' => 'end',
|
'end' => 'end',
|
||||||
|
'deleted' => 'deleted',
|
||||||
|
|
||||||
'participants' => array('user_id', 'status', 'role', 'recur'),
|
'participants' => array('user_id', 'status', 'role', 'recur'),
|
||||||
'participants-c' => array('user_id', 'status', 'quantity', 'role', 'recur'),
|
'participants-c' => array('user_id', 'status', 'quantity', 'role', 'recur'),
|
||||||
@ -86,6 +87,7 @@ class calendar_tracking extends bo_tracking
|
|||||||
|
|
||||||
'start' => 'start',
|
'start' => 'start',
|
||||||
'end' => 'end',
|
'end' => 'end',
|
||||||
|
'deleted' => 'deleted',
|
||||||
|
|
||||||
'participants' => 'Participants: User, Status, Role',
|
'participants' => 'Participants: User, Status, Role',
|
||||||
'participants-c'=> 'Participants: User, Status, Quantity, Role',
|
'participants-c'=> 'Participants: User, Status, Quantity, Role',
|
||||||
|
@ -2430,6 +2430,8 @@ class calendar_uiforms extends calendar_ui
|
|||||||
|
|
||||||
'start' => 'date-time',
|
'start' => 'date-time',
|
||||||
'end' => 'date-time',
|
'end' => 'date-time',
|
||||||
|
'deleted' => 'date-time',
|
||||||
|
|
||||||
'tz_id' => 'select-timezone',
|
'tz_id' => 'select-timezone',
|
||||||
|
|
||||||
// Participants
|
// Participants
|
||||||
@ -2560,7 +2562,7 @@ class calendar_uiforms extends calendar_ui
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* imports a mail as Calendar
|
* imports a mail as Calendar
|
||||||
*
|
*
|
||||||
@ -2576,13 +2578,13 @@ class calendar_uiforms extends calendar_ui
|
|||||||
egw_link::get_data ($_GET['egw_data']);
|
egw_link::get_data ($_GET['egw_data']);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_array($mailContent))
|
if (is_array($mailContent))
|
||||||
{
|
{
|
||||||
// Addressbook
|
// Addressbook
|
||||||
$AB = new addressbook_bo();
|
$AB = new addressbook_bo();
|
||||||
$accounts = array(0 => $GLOBALS['egw_info']['user']['account_id']);
|
$accounts = array(0 => $GLOBALS['egw_info']['user']['account_id']);
|
||||||
|
|
||||||
$participants[0] = array (
|
$participants[0] = array (
|
||||||
'uid' => $GLOBALS['egw_info']['user']['account_id'],
|
'uid' => $GLOBALS['egw_info']['user']['account_id'],
|
||||||
'delete_id' => $GLOBALS['egw_info']['user']['account_id'],
|
'delete_id' => $GLOBALS['egw_info']['user']['account_id'],
|
||||||
@ -2620,7 +2622,7 @@ class calendar_uiforms extends calendar_ui
|
|||||||
"role" => "REQ-PARTICIPANT",
|
"role" => "REQ-PARTICIPANT",
|
||||||
"add" => "pressed"
|
"add" => "pressed"
|
||||||
));
|
));
|
||||||
|
|
||||||
// Prepare calendar event draft
|
// Prepare calendar event draft
|
||||||
$event = array(
|
$event = array(
|
||||||
'title' => $mailContent['subject'],
|
'title' => $mailContent['subject'],
|
||||||
@ -2633,7 +2635,7 @@ class calendar_uiforms extends calendar_ui
|
|||||||
'start' => $mailContent['date'],
|
'start' => $mailContent['date'],
|
||||||
'duration' => 60 * $this->cal_prefs['interval']
|
'duration' => 60 * $this->cal_prefs['interval']
|
||||||
);
|
);
|
||||||
|
|
||||||
if (is_array($mailContent['attachments']))
|
if (is_array($mailContent['attachments']))
|
||||||
{
|
{
|
||||||
foreach ($mailContent['attachments'] as $attachment)
|
foreach ($mailContent['attachments'] as $attachment)
|
||||||
@ -2653,7 +2655,7 @@ class calendar_uiforms extends calendar_ui
|
|||||||
{
|
{
|
||||||
egw_framework::window_close(lang('No content found to show up as calendar entry.'));
|
egw_framework::window_close(lang('No content found to show up as calendar entry.'));
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->process_edit($event);
|
return $this->process_edit($event);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user