Commit 1812a2bf authored by Matija Obreza's avatar Matija Obreza
Browse files

Ah.

parent 05b9344d
......@@ -252,7 +252,7 @@ public class RequestServiceImpl implements RequestService {
for (MaterialSubRequest subrequest : materialRequest.getSubRequests()) {
RequestBody rbs = mapper.readValue(subrequest.getBody(), RequestBody.class);
rbs.pid = pid;
subrequest.setBody(serialize(rb));
subrequest.setBody(serialize(rbs));
LOG.info("Updating subrequest: " + subrequest);
subRequestRepository.save(subrequest);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment