Commit a335dc82 authored by Viacheslav Pavlov's avatar Viacheslav Pavlov
Browse files

Fixed validation of material request

parent 74056e05
......@@ -307,13 +307,13 @@ public class RequestServiceImpl implements RequestService {
@Transactional
@PreAuthorize("hasRole('ADMINISTRATOR')")
public MaterialRequest validateRequest(MaterialRequest materialRequest) throws NoPidException, EasySMTAException {
// Client email is confirmed
materialRequest.setState(MaterialRequest.VALIDATED);
materialRequest = requestRepository.save(materialRequest);
if (!materialRequest.isInternalRequest()) {
recheckPid(materialRequest);
}
// Client email is confirmed
materialRequest.setState(MaterialRequest.VALIDATED);
materialRequest = requestRepository.save(materialRequest);
breakup(materialRequest);
relayRequests(materialRequest);
......
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