* CalDAV/Calendar: sending now iMip response to external organizer when initialy accepting invitation via CalDAV client (before only status changes where sent)

This commit is contained in:
Ralf Becker 2014-02-20 15:05:51 +00:00
parent 8a07f48a3b
commit 6dfaec26d8

View File

@ -550,7 +550,8 @@ class calendar_boupdate extends calendar_bo
case 'no':
// always notify externals chairs
// EGroupware owner only get notified about responses, if pref is NOT "no"
if (!is_numeric($userid) && $msg_is_response && $role == 'CHAIR')
if (!is_numeric($userid) && $role == 'CHAIR' &&
($msg_is_response || in_array($msg_type, array(MSG_ADDED, MSG_DELETED))))
{
++$want_update;
}
@ -1334,7 +1335,7 @@ class calendar_boupdate extends calendar_bo
if ((string)$alarm['owner'] === (string)$uid)
{
$this->so->delete_alarm($id);
error_log(__LINE__.': '.__METHOD__."(".array2string($event).", '$uid', '$status', ...) deleting alarm=".array2string($alarm).", $status=".array2string($alarm));
//error_log(__LINE__.': '.__METHOD__."(".array2string($event).", '$uid', '$status', ...) deleting alarm=".array2string($alarm).", $status=".array2string($alarm));
}
}
}