Fix creator property erased when exporting office documents

This commit is contained in:
yflory 2025-10-14 17:05:03 +02:00
parent 624c6d221a
commit 6b8766685e

View File

@ -361,7 +361,7 @@ define([
const props = getEditor().asc_getCoreProps();
if (!props) { return; }
props.title = title;
if (!content.hashes || !content.hashes.length) {
if (!content.hashes || !Object.keys(content.hashes).length) {
// No CP: document is using our templates
// --> fix the "creator" field
props.creator = "";