From 4cee4f30ddefd3dd62b8e916b1a03548bfb9e54b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Wed, 16 Aug 2023 12:04:45 +0200 Subject: [PATCH] fix: Revert change of extension which should refer to the new file extension MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- lib/TemplateManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/TemplateManager.php b/lib/TemplateManager.php index 3e63c1d9c0..9d148127e8 100644 --- a/lib/TemplateManager.php +++ b/lib/TemplateManager.php @@ -478,7 +478,7 @@ public function formatNodeReturn(File $template) { 'preview' => $this->urlGenerator->linkToRouteAbsolute('richdocuments.templates.getPreview', ['fileId' => $template->getId()]), 'type' => $this->flipTypes()[$template->getMimeType()], 'delete' => $this->urlGenerator->linkToRouteAbsolute('richdocuments.templates.delete', ['fileId' => $template->getId()]), - 'extension' => $template->getExtension(), + 'extension' => ($ooxml && isset(self::TYPE_EXTENSION_OOXML[$documentType])) ? self::TYPE_EXTENSION_OOXML[$documentType] : self::TYPE_EXTENTION[$documentType], ]; }