stable

Clone or download

Read-only

Fatal error when item has no version

Part of the story #12443 : Table: Minimal folder display How to test without this patch Have a file without version Access to docman => fatal error is raised: Catchable fatal error: Argument 1 passed to Tuleap\Docman\REST\v1\FilePropertiesRepresentation::build() must be an instance of Docman_Version, null given, called in /usr/share/tuleap/plugins/docman/include/REST/v1/ItemRepresentationVisitor.php on line 95 and defined in /usr/share/tuleap/plugins/docman/include/REST/v1/FilePropertiesRepresentation.php on line 32 With this patch => no fatal error Change-Id: Ic5b49ed77202a9c5ea655ca883192f9881f45db8

Modified Files

Name
M plugins/docman/include/REST/v1/FilePropertiesRepresentation.php +4 −2 Go to diff View file
M plugins/docman/include/REST/v1/ItemRepresentationVisitor.php +11 −4 Go to diff View file