mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-28 04:25:03 +02:00
fix: copy template content when creating controlled document (#6441)
Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
+4
-2
@@ -24,7 +24,7 @@
|
||||
type Data,
|
||||
type Ref
|
||||
} from '@hcengineering/core'
|
||||
import { MessageBox, getClient } from '@hcengineering/presentation'
|
||||
import { MessageBox, copyDocument, getClient } from '@hcengineering/presentation'
|
||||
import {
|
||||
AnySvelteComponent,
|
||||
addNotification,
|
||||
@@ -160,7 +160,9 @@
|
||||
docObject,
|
||||
_space,
|
||||
$locationStep.project,
|
||||
$locationStep.parent
|
||||
$locationStep.parent,
|
||||
documents.class.ControlledDocument,
|
||||
copyDocument
|
||||
)
|
||||
|
||||
if (!success) {
|
||||
|
||||
Reference in New Issue
Block a user