From be84abd9c2ad013527da596fe9a2709c72d3ea67 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Tue, 1 Dec 2009 13:24:15 +0100 Subject: [PATCH] Send out iTip notifications. --- kronolith/ajax.php | 6 ++++++ kronolith/templates/index/edit.inc | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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 @@