stable

Clone or download

Read-only

We should check item type at the begining of PATCH routes

part of story #12453 Update document modal for existing item How to test: - try to call patch routes on the wrong item type: you should have the error before any else check Change-Id: Iafd64201e6c736277ea549c49a425f04081b755d

Modified Files

Name
M plugins/docman/include/REST/v1/DocmanEmbeddedFilesResource.php +5 −3 Go to diff View file
M plugins/docman/include/REST/v1/DocmanFilesResource.php +6 −3 Go to diff View file
M plugins/docman/include/REST/v1/DocmanWikiResource.php +5 −3 Go to diff View file
M plugins/docman/include/REST/v1/EmbeddedFiles/DocmanEmbeddedFileUpdator.php +0 −8 Go to diff View file
M plugins/docman/include/REST/v1/Files/DocmanItemFileUpdator.php +0 −8 Go to diff View file
M plugins/docman/include/REST/v1/Wiki/DocmanWikiUpdator.php +0 −8 Go to diff View file
M plugins/docman/phpunit/REST/v1/Files/DocmanItemFileUpdatorTest.php +0 −8 Go to diff View file
M plugins/docman/tests/rest/Docman/DocmanItemsTest.php +1 −1 Go to diff View file
M plugins/docman/tests/rest/Docman/DocmanItemsTestFilesTest.php +5 −9 Go to diff View file
M plugins/docman/tests/rest/DocmanDataBuilder.php +11 −5 Go to diff View file