From: Michael J. Rubinsky Date: Sat, 8 May 2010 15:45:24 +0000 (-0400) Subject: Indicate that an event is an exception, and don't show the recurrence X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=45b6e1ad626c7f0b968918c3785b15cab49fb01d;p=horde.git Indicate that an event is an exception, and don't show the recurrence related form fields. --- 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; +