aboutsummaryrefslogtreecommitdiff
path: root/src/fields/Doc.ts
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2023-11-29 15:41:10 -0500
committerbobzel <zzzman@gmail.com>2023-11-29 15:41:10 -0500
commit412e4aa10e0fab8a949c78e851efdc68661dd522 (patch)
treea945ec733aee4a078b2a57c88c5d9e2723bb7e9e /src/fields/Doc.ts
parent872dc82886f8111da1bdfd282ac2a78ec3bdc1f6 (diff)
fixes for following links to parts of templates. turned off
Diffstat (limited to 'src/fields/Doc.ts')
-rw-r--r--src/fields/Doc.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fields/Doc.ts b/src/fields/Doc.ts
index 993715e6f..51dacd181 100644
--- a/src/fields/Doc.ts
+++ b/src/fields/Doc.ts
@@ -786,6 +786,7 @@ export namespace Doc {
const newLayoutDoc = Doc.MakeDelegate(templateLayoutDoc, undefined, '[' + templateLayoutDoc.title + ']');
newLayoutDoc.rootDocument = targetDoc;
const dataDoc = Doc.GetProto(targetDoc);
+ newLayoutDoc.embedContainer = targetDoc;
newLayoutDoc.resolvedDataDoc = dataDoc;
newLayoutDoc['acl-Guest'] = SharingPermissions.Edit;
if (dataDoc[templateField] === undefined && (templateLayoutDoc[templateField] as any)?.length) {