From 45b6e1ad626c7f0b968918c3785b15cab49fb01d Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Sat, 8 May 2010 11:45:24 -0400 Subject: [PATCH] Indicate that an event is an exception, and don't show the recurrence related form fields. --- kronolith/lib/Event.php | 10 +++++++--- kronolith/templates/edit/edit.inc | 5 +++++ 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/kronolith/lib/Event.php b/kronolith/lib/Event.php index f2bc69d5b..98fc1665e 100644 --- a/kronolith/lib/Event.php +++ b/kronolith/lib/Event.php @@ -1666,9 +1666,13 @@ abstract class Kronolith_Event */ public function getRecurName() { - return $this->recurs() - ? $this->recurrence->getRecurName() - : _("No recurrence"); + if (empty($this->baseid)) { + return $this->recurs() + ? $this->recurrence->getRecurName() + : _("No recurrence"); + } else { + return _("Exception"); + } } /** diff --git a/kronolith/templates/edit/edit.inc b/kronolith/templates/edit/edit.inc index 96c615177..e1c7e1a04 100644 --- a/kronolith/templates/edit/edit.inc +++ b/kronolith/templates/edit/edit.inc @@ -271,6 +271,10 @@ if ($event->alarm) { +baseid)):?> +   + exceptionoriginaldate->strftime($GLOBALS['prefs']->getValue('date_format')));?> + @@ -386,6 +390,7 @@ endif; + -- 2.11.0