diff --git a/src/main/java/org/orph2020/pst/apiimpl/rest/ProposalResource.java b/src/main/java/org/orph2020/pst/apiimpl/rest/ProposalResource.java index 6def612..87abc26 100644 --- a/src/main/java/org/orph2020/pst/apiimpl/rest/ProposalResource.java +++ b/src/main/java/org/orph2020/pst/apiimpl/rest/ProposalResource.java @@ -591,7 +591,7 @@ public Response removeField(@PathParam("proposalCode") Long proposalCode, @PathP @Path(proposalRoot+"/export") public Response exportProposal(@PathParam("proposalCode")Long proposalCode) throws WebApplicationException { - ObservingProposal proposalForExport = getObservingProposal(proposalCode); + ObservingProposal proposalForExport = findObject(ObservingProposal.class, proposalCode); return Response .status(Response.Status.OK)