stable
Clone or download
Read-only
This is a part of story #13208 create new version of empty document How to test: - Go to the API explorer - Try to create a version of a link document from an empty document => It should be OK => A new entry in the hisotry should be added also => An error is returned if the document to update is not a empty document Change-Id: I4dc5591c6bfafdaa3c2a8335d70f01507cd2d7f2
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/docman/include/Docman_ItemFactory.class.php | +1 | −1 | Go to diff View file |
M | plugins/docman/include/REST/v1/DocmanEmptyDocumentsResource.php | +78 | −0 | Go to diff View file |
M | plugins/docman/include/REST/v1/DocmanLinksResource.php | +11 | −4 | Go to diff View file |
M | plugins/docman/include/REST/v1/Links/DocmanLinkVersionCreator.php | +43 | −1 | Go to diff View file |
A | plugins/docman/include/Version/LinkVersionDataUpdator.php | +62 | −0 | Go to diff View file |
M | plugins/docman/phpunit/REST/v1/Links/DocmanLinkVersionCreatorTest.php | +31 | −1 | Go to diff View file |
A | plugins/docman/phpunit/Version/LinkVersionDataUpdatorTest.php | +79 | −0 | Go to diff View file |
M | plugins/docman/tests/rest/Docman/DocmanEmptyTest.php | +72 | −0 | Go to diff View file |