From 8ff739e422d278afc828ce657df058fd7b2787d4 Mon Sep 17 00:00:00 2001 From: Avinash Gusain Date: Tue, 6 Sep 2022 14:35:00 +0530 Subject: [PATCH 1/2] fix email patch --- patches/015-email-mail-template.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/015-email-mail-template.patch b/patches/015-email-mail-template.patch index 71c708d8..42cd21f5 100644 --- a/patches/015-email-mail-template.patch +++ b/patches/015-email-mail-template.patch @@ -67,7 +67,7 @@ + if ($method !== self::METHOD_CANCEL && $method !== self::METHOD_REPLY && count($vevent)>1) { + $template->addHeadingBanner('#EFFFDB','#293618',$l10n->t('This recurring event has been updated, please review the information below:')); + } -+ $sequence = $vevent->SEQUENCE->getValue(); ++ $sequence = $vevent->SEQUENCE ? $vevent->SEQUENCE->getValue() : NULL; + if ($method !== self::METHOD_CANCEL && $method !== self::METHOD_REPLY && count($vevent)==1 && ($sequence > 2)) { + $template->addHeadingBanner('#EFFFDB','#293618',$l10n->t('This event has been updated, please review the information below:')); + } -- GitLab From c2597571694d0f5ddcf6cf9cb9ad1186b2b8b425 Mon Sep 17 00:00:00 2001 From: Akhil Date: Tue, 6 Sep 2022 14:39:49 +0530 Subject: [PATCH 2/2] Check --- patches/015-email-mail-template.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/015-email-mail-template.patch b/patches/015-email-mail-template.patch index 42cd21f5..d6281ed1 100644 --- a/patches/015-email-mail-template.patch +++ b/patches/015-email-mail-template.patch @@ -68,7 +68,7 @@ + $template->addHeadingBanner('#EFFFDB','#293618',$l10n->t('This recurring event has been updated, please review the information below:')); + } + $sequence = $vevent->SEQUENCE ? $vevent->SEQUENCE->getValue() : NULL; -+ if ($method !== self::METHOD_CANCEL && $method !== self::METHOD_REPLY && count($vevent)==1 && ($sequence > 2)) { ++ if ($sequence && $method !== self::METHOD_CANCEL && $method !== self::METHOD_REPLY && count($vevent)==1 && ($sequence > 2)) { + $template->addHeadingBanner('#EFFFDB','#293618',$l10n->t('This event has been updated, please review the information below:')); + } $this->addBulletList($template, $l10n, $vevent); -- GitLab