stable

Clone or download

Read-only

Update the PATCH docman_link/:id route with the hardcoded metadata

This is a part of the story #12638 Add always there metadata date in new/update item modal How to test : - Go to the API Explorer - Try to update a link with hardcoded metadata => It should return an error if the metadata is not well formatted or unused => Else it should return 200 > You can see the result in the DB or directly via the quick look of the new UI Change-Id: I46c7e403b6f13c97f89137af4aa3a37b2a54a0f1

Modified Files

Name
M plugins/docman/include/Docman_ItemFactory.class.php +21 −0 Go to diff View file
M plugins/docman/include/REST/v1/DocmanLinksResource.php +39 −14 Go to diff View file
M plugins/docman/include/REST/v1/Links/DocmanLinkPATCHRepresentation.php +24 −1 Go to diff View file
M plugins/docman/include/REST/v1/Links/DocmanLinkUpdator.php +71 −11 Go to diff View file
M plugins/docman/tests/rest/Docman/DocmanItemsTestLinksTest.php +195 −11 Go to diff View file
M plugins/docman/tests/rest/docmanWithActivatedMetadata/DocmanHardcodedMetadataTest.php +252 −0 Go to diff View file
M plugins/document/scripts/document/api/rest-querier.js +2 −0 Go to diff View file