Merge pull request #1075 from lemondevxyz/fix-issue-1073

add " (copy)" to copied OpenOffice files
This commit is contained in:
wginolas 2023-07-11 08:34:52 +02:00 committed by GitHub
commit 3fca0bac53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -241,6 +241,12 @@ define([
type = APP.downloadType;
title = "download";
}
if(title === "" && APP.startWithTemplate) {
var metadata = APP.startWithTemplate.content.metadata;
var copyTitle = Messages._getKey('copy_title', [metadata.title || metadata.defaultTitle]);
common.getMetadataMgr().updateTitle(copyTitle);
title = copyTitle;
}
var file = {};
switch(type) {
case 'doc':