aboutsummaryrefslogtreecommitdiff
path: root/src/client/documents
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2023-07-31 11:20:17 -0400
committerbobzel <zzzman@gmail.com>2023-07-31 11:20:17 -0400
commit215d6f5e13b826e60bc0058fe961b1a7270cfe9f (patch)
tree9da36cb2bf51aee1dbbcac65cb24c161d0aa9dd1 /src/client/documents
parent4ee777d48da06ff8053d32e8bcb27ba344bdfe98 (diff)
parent08f125f5880247280c02633feeb31a8df1912b97 (diff)
Merge branch 'master' into james-azure-image
Diffstat (limited to 'src/client/documents')
-rw-r--r--src/client/documents/Documents.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts
index c5a9ce824..8eeceaa15 100644
--- a/src/client/documents/Documents.ts
+++ b/src/client/documents/Documents.ts
@@ -635,7 +635,7 @@ export namespace Docs {
DocumentType.CONFIG,
{
layout: { view: CollectionView, dataField: defaultDataKey },
- options: { layout_hideLinkButton: true, pointerEvents: 'none', layout_unrendered: true },
+ options: { layout_hideLinkButton: true, layout_unrendered: true },
},
],
[
@@ -853,7 +853,7 @@ export namespace Docs {
dataProps.author_date = new DateField();
if (fieldKey) {
dataProps[`${fieldKey}_modificationDate`] = new DateField();
- dataProps[fieldKey] = data;
+ dataProps[fieldKey] = options.data ?? data;
// so that the list of annotations is already initialised, prevents issues in addonly.
// without this, if a doc has no annotations but the user has AddOnly privileges, they won't be able to add an annotation because they would have needed to create the field's list which they don't have permissions to do.