stable

Clone or download

Read-only

request #13268 Docman API returns only the wrong status of an approval table

How to reproduce Have a document with approval table, With a user reject the document (global status for document should be rejected) Create a new version of document With the same user now accept the document (global status for document should be approved) WIth API get docman_items/id => the approval table status should be the correct one (approved) => without the patch approval status is always "Not yet" Change-Id: I03d37478ddb39c368bff9c38c407af2072f86410

Modified Files

Name
M plugins/docman/include/ApprovalTable/ApprovalTableRetriever.php +33 −17 Go to diff View file
M plugins/docman/include/ApprovalTable/FactoriesFactory.class.php +3 −2 Go to diff View file
M plugins/docman/include/ApprovalTable/File/FileDao.class.php +1 −1 Go to diff View file
M plugins/docman/include/ApprovalTable/Link/LinkDao.class.php +2 −1 Go to diff View file
M plugins/docman/include/ApprovalTable/Link/LinkFactory.class.php +2 −2 Go to diff View file
M plugins/docman/include/ApprovalTable/Versionned/VersionnedFactory.class.php +2 −2 Go to diff View file
M plugins/docman/include/ApprovalTable/Wiki/WikiDao.class.php +1 −1 Go to diff View file
M plugins/docman/include/Docman_VersionFactory.class.php +3 −0 Go to diff View file
M plugins/docman/include/REST/v1/DocmanEmbeddedFilesResource.php +4 −1 Go to diff View file
M plugins/docman/include/REST/v1/DocmanFilesResource.php +5 −1 Go to diff View file
M plugins/docman/include/REST/v1/DocmanItemUpdatorBuilder.php +5 −1 Go to diff View file
M plugins/docman/include/REST/v1/DocmanItemsResource.php +5 −1 Go to diff View file
M plugins/docman/include/REST/v1/DocmanLinksResource.php +5 −2 Go to diff View file
M plugins/docman/include/REST/v1/DocmanWikiResource.php +5 −1 Go to diff View file
M plugins/docman/include/docmanPlugin.class.php +8 −2 Go to diff View file
M plugins/docman/phpunit/ApprovalTable/ApprovalTableRetrieverTest.php +108 −8 Go to diff View file
M plugins/docman/tests/rest/Docman/DocmanItemsTestFilesEmbeddedTest.php +34 −43 Go to diff View file
M plugins/docman/tests/rest/Docman/DocmanItemsTestFilesTest.php +33 −46 Go to diff View file
M plugins/docman/tests/rest/Docman/DocmanItemsTestLinksTest.php +32 −43 Go to diff View file
M plugins/docman/tests/rest/DocmanDataBuilder.php +11 −2 Go to diff View file