diff --git a/grails-app/controllers/au/org/ala/biocollect/DocumentController.groovy b/grails-app/controllers/au/org/ala/biocollect/DocumentController.groovy index 5042c259b..5a09bcab3 100644 --- a/grails-app/controllers/au/org/ala/biocollect/DocumentController.groovy +++ b/grails-app/controllers/au/org/ala/biocollect/DocumentController.groovy @@ -21,7 +21,7 @@ class DocumentController { WebService webService GrailsApplication grailsApplication - def get(String id) { + def get(String documentId) { if (!documentId) { render text: [message: "Document not found"] as JSON, status: HttpStatus.SC_NOT_FOUND return