stable

Clone or download

Read-only

feat: Copy/paste artidoc document

A user can now copy paste an artidoc document. The content of the document is the same (same sections, same order). Note: since we cannot create an artidoc via REST, the REST tests for the current contribution are quite small. They will be enhanced later. Part of story #37542: display a read only Document Change-Id: I7fd0c57d8eb99c84e43b5f2fc98600d0ca5ccb67

Modified Files

Name
M plugins/artidoc/include/Artidoc/Document/ArtidocDao.php +14 −0 Go to diff View file
M plugins/artidoc/include/Artidoc/Document/ArtidocDocument.php +8 −0 Go to diff View file
M plugins/artidoc/include/artidocPlugin.php +9 −0 Go to diff View file
M plugins/artidoc/tests/integration/Artidoc/Document/ArtidocDaoTest.php +50 −0 Go to diff View file
M plugins/docman/include/DestinationCloneItem.php +8 −3 Go to diff View file
M plugins/docman/include/Docman_Actions.class.php +1 −1 Go to diff View file
M plugins/docman/include/Docman_CloneItemsVisitor.class.php +7 −1 Go to diff View file
M plugins/docman/include/Docman_Controller.class.php +2 −1 Go to diff View file
M plugins/docman/include/Docman_ItemDao.class.php +1 −1 Go to diff View file
A plugins/docman/include/Item/CloneOtherItemPostAction.php +32 −0 Go to diff View file
M plugins/docman/include/ItemType/DoesItemHasExpectedTypeVisitor.php +1 −1 Go to diff View file
M plugins/docman/include/REST/v1/CopyItem/DocmanItemCopier.php +1 −1 Go to diff View file
M plugins/docman/include/REST/v1/DocmanFoldersResource.php +45 −0 Go to diff View file
A plugins/docman/include/REST/v1/Others/DocmanOtherTypePOSTRepresentation.php +33 −0 Go to diff View file
M plugins/docman/tests/rest/Docman/DocmanFoldersTest.php +14 −0 Go to diff View file
M plugins/docman/tests/unit/CopyItemsTest.php +2 −1 Go to diff View file
M plugins/docman/tests/unit/DestinationCloneItemTest.php +16 −7 Go to diff View file
M plugins/docman/tests/unit/Docman_CloneItemsVisitorTest.php +2 −1 Go to diff View file
M plugins/document/scripts/document/api/move-rest-querier.ts +7 −0 Go to diff View file
M plugins/document/scripts/document/stores/clipboard.test.ts +11 −1 Go to diff View file
M plugins/document/scripts/document/stores/clipboard.ts +2 −2 Go to diff View file