diff --git a/CHANGELOG.md b/CHANGELOG.md index ac21e52d..d331cb45 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ - list of users to protect ranges of cells - offline viewer for share link - updatable list of supported formats +- filling pdf instead oform ## Added - reference data from coediting diff --git a/appinfo/application.php b/appinfo/application.php index 4ed7930d..d71e89aa 100644 --- a/appinfo/application.php +++ b/appinfo/application.php @@ -120,7 +120,6 @@ function () { $detector->registerType("ots", "application/vnd.oasis.opendocument.spreadsheet-template"); $detector->registerType("otp", "application/vnd.oasis.opendocument.presentation-template"); $detector->registerType("docxf", "application/vnd.openxmlformats-officedocument.wordprocessingml.document.docxf"); - $detector->registerType("oform", "application/vnd.openxmlformats-officedocument.wordprocessingml.document.oform"); $previewManager = $container->query(IPreview::class); if ($this->appConfig->getPreview()) { diff --git a/js/main.js b/js/main.js index 27ddc1da..1823cb17 100644 --- a/js/main.js +++ b/js/main.js @@ -296,7 +296,7 @@ OCA.Onlyoffice.CreateFormClick = function (fileName, context) { var fileList = context.fileList; - var name = fileName.replace(/\.[^.]+$/, ".oform"); + var name = fileName.replace(/\.[^.]+$/, ".pdf"); var attr = context.fileInfoModel.attributes; var targetPath = attr.path + "/" + attr.name; diff --git a/lib/appconfig.php b/lib/appconfig.php index 3558c4e0..4928a17f 100644 --- a/lib/appconfig.php +++ b/lib/appconfig.php @@ -1307,7 +1307,8 @@ private function buildOnlyofficeFormats() { && $onlyOfficeFormat["mime"] && $onlyOfficeFormat["type"] && $onlyOfficeFormat["actions"] - && $onlyOfficeFormat["convert"]) { + && $onlyOfficeFormat["convert"] + ) { $result[$onlyOfficeFormat["name"]] = [ "mime" => $onlyOfficeFormat["mime"], "type" => $onlyOfficeFormat["type"],