mirror of
https://github.com/nextcloud/server.git
synced 2026-02-16 09:19:43 -05:00
Merge pull request #37687 from nextcloud/backport/37626/stable26
[stable26] fix(dav): add string comparison for diff
This commit is contained in:
commit
426aa8ae8d
1 changed files with 3 additions and 3 deletions
|
|
@ -98,7 +98,7 @@ class IMipService {
|
|||
return $default;
|
||||
}
|
||||
$newstring = $vevent->$property->getValue();
|
||||
if(isset($oldVEvent->$property)) {
|
||||
if(isset($oldVEvent->$property) && $oldVEvent->$property->getValue() !== $newstring ) {
|
||||
$oldstring = $oldVEvent->$property->getValue();
|
||||
return sprintf($strikethrough, $oldstring, $newstring);
|
||||
}
|
||||
|
|
@ -128,7 +128,7 @@ class IMipService {
|
|||
$data['meeting_location_html'] = $this->generateDiffString($vEvent, $oldVEvent, 'LOCATION', $data['meeting_location']);
|
||||
|
||||
$oldUrl = self::readPropertyWithDefault($oldVEvent, 'URL', $defaultVal);
|
||||
$data['meeting_url_html'] = !empty($oldUrl) ? sprintf('<a href="%1$s">%1$s</a>', $oldUrl) : $data['meeting_url'];
|
||||
$data['meeting_url_html'] = !empty($oldUrl) && $oldUrl !== $data['meeting_url'] ? sprintf('<a href="%1$s">%1$s</a>', $oldUrl) : $data['meeting_url'];
|
||||
|
||||
$data['meeting_when_html'] =
|
||||
($oldMeetingWhen !== $data['meeting_when'] && $oldMeetingWhen !== null)
|
||||
|
|
@ -472,7 +472,7 @@ class IMipService {
|
|||
*/
|
||||
public function addBulletList(IEMailTemplate $template, VEvent $vevent, $data) {
|
||||
$template->addBodyListItem(
|
||||
$data['meeting_title'], $this->l10n->t('Title:'),
|
||||
$data['meeting_title_html'] ?? $data['meeting_title'], $this->l10n->t('Title:'),
|
||||
$this->getAbsoluteImagePath('caldav/title.png'), $data['meeting_title'], '', IMipPlugin::IMIP_INDENT);
|
||||
if ($data['meeting_when'] !== '') {
|
||||
$template->addBodyListItem($data['meeting_when_html'] ?? $data['meeting_when'], $this->l10n->t('Time:'),
|
||||
|
|
|
|||
Loading…
Reference in a new issue