From: Jan Schneider Date: Tue, 1 Dec 2009 12:24:15 +0000 (+0100) Subject: Send out iTip notifications. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=be84abd9c2ad013527da596fe9a2709c72d3ea67;p=horde.git Send out iTip notifications. --- diff --git a/kronolith/ajax.php b/kronolith/ajax.php index 411dae566..ae32b9159 100644 --- a/kronolith/ajax.php +++ b/kronolith/ajax.php @@ -164,6 +164,9 @@ try { } $event->readForm(); $result = saveEvent($event); + if ($result !== true && Horde_Util::getFormData('sendupdates')) { + Kronolith::sendITipNotifications($event, $notification, Kronolith::ITIP_REQUEST); + } break; case 'QuickSaveEvent': @@ -265,6 +268,9 @@ try { $notification->push($deleted, 'horde.error'); break; } + if (Horde_Util::getFormData('sendupdates', false)) { + Kronolith::sendITipNotifications($event, $notification, Kronolith::ITIP_CANCEL); + } $result = new stdClass; $result->deleted = true; break; diff --git a/kronolith/templates/index/edit.inc b/kronolith/templates/index/edit.inc index 2f6b1490a..9aeaa0966 100644 --- a/kronolith/templates/index/edit.inc +++ b/kronolith/templates/index/edit.inc @@ -146,7 +146,7 @@