Skip to content

Commit

Permalink
Fix generating POOMCAL_RESPONSETYPE for series exceptions.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Nov 28, 2013
1 parent 2bc729e commit e5a0412
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions kronolith/lib/Event.php
Expand Up @@ -1706,19 +1706,18 @@ public function toASAppointment(array $options = array())
$e->setDTStamp($_SERVER['REQUEST_TIME']);

switch ($exception->status) {
case Kronolith::STATUS_CANCELLED:
$status = 'declined';
case Kronolith::STATUS_TENTATIVE;
$e->responsetype = Horde_ActiveSync_Message_Appointment::RESPONSE_TENTATIVE;
break;
case Kronolith::STATUS_NONE:
$e->responsetype = Horde_ActiveSync_Message_Appointment::RESPONSE_NORESPONSE;
break;
case Kronolith::STATUS_CONFIRMED:
$status = 'accepted';
$e->responsetype = Horde_ActiveSync_Message_Appointment::RESPONSE_ACCEPTED;
break;
case Kronolith::STATUS_TENTATIVE:
$status = 'tentative';
case Kronolith::STATUS_FREE:
case Kronolith::STATUS_NONE:
$status = 'none';
default:
$e->responsetype = Horde_ActiveSync_Message_Appointment::RESPONSE_NONE;
}
$e->setResponseType($status);

// Tags/Categories
if (!$exception->isPrivate()) {
Expand Down

0 comments on commit e5a0412

Please sign in to comment.