}
$event->readForm();
$result = saveEvent($event);
+ if ($result !== true && Horde_Util::getFormData('sendupdates')) {
+ Kronolith::sendITipNotifications($event, $notification, Kronolith::ITIP_REQUEST);
+ }
break;
case 'QuickSaveEvent':
$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;
<div id="kronolithEventTabAttendees" class="kronolithTabsOption" style="display:none">
<input type="text" name="attendees" id="kronolithEventAttendees" class="kronolithLongField" value="" /><br />
- <label><input type="checkbox" name="sendupdates" value="" /> <?php printf(_("send invites %s to all attendees"), '</label>') ?><br />
+ <label><input type="checkbox" name="sendupdates" value="1" /> <?php printf(_("send invites %s to all attendees"), '</label>') ?><br />
<div id="kronolithFBLoading" style="display:none"></div>
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<thead>