mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 09:23:28 +01:00
Change handling of new private events created for other users to allow them to show immediately
This commit is contained in:
parent
b884e014d7
commit
c09cfa5a23
@ -252,8 +252,11 @@ class calendar_boupdate extends calendar_bo
|
||||
return $cal_id;
|
||||
}
|
||||
|
||||
$event = $this->read($cal_id); // we re-read the event, in case only partial information was update and we need the full info for the notifies
|
||||
//echo "new $cal_id="; _debug_array($event);
|
||||
// we re-read the event, in case only partial information was update and we need the full info for the notifies
|
||||
// The check for new private events is to at least show the private version,
|
||||
// otherwise we get FALSE
|
||||
$event = $this->read($cal_id, null, $ignore_acl, 'ts', $new_event && !$event['public'] ? $this->user : null);
|
||||
//error_log("new $cal_id=". array2string($event));
|
||||
|
||||
if($old_event['deleted'] && $event['deleted'] == null)
|
||||
{
|
||||
|
@ -621,15 +621,15 @@ class calendar_ui
|
||||
|
||||
// Directly update stored data.
|
||||
// Make sure we have the whole event
|
||||
$event = $this->bo->read($event_id, $recurrence_date);
|
||||
$event = $this->bo->read($event_id, $recurrence_date, false, 'ts', $this->cal_prefs['saved_states']['owner']);
|
||||
$response = Api\Json\Response::get();
|
||||
|
||||
|
||||
// Check filters to see if they still match, may have to remove
|
||||
// the event because it should no longer be displayed
|
||||
$filter_match = true;
|
||||
if($this->cal_prefs['saved_states']['status_filter'] != 'all' ||
|
||||
$this->cal_prefs['saved_states']['cat_id'])
|
||||
if($event && ($this->cal_prefs['saved_states']['status_filter'] != 'all' ||
|
||||
$this->cal_prefs['saved_states']['cat_id']))
|
||||
{
|
||||
$filter_check = array(
|
||||
'start' => $event['start'],
|
||||
|
Loading…
Reference in New Issue
Block a user