Skip to content
Snippets Groups Projects
Commit 214619a1 authored by Mike McKay's avatar Mike McKay
Browse files

XNAT-4289 Fixed bug that was preventing users from enabling or disabling DicomSCP receivers.

parent abc65bce
No related branches found
No related tags found
No related merge requests found
...@@ -108,7 +108,10 @@ public class DicomSCPApi extends AbstractXnatRestApi { ...@@ -108,7 +108,10 @@ public class DicomSCPApi extends AbstractXnatRestApi {
if (!_manager.hasDicomSCP(id)) { if (!_manager.hasDicomSCP(id)) {
return new ResponseEntity<>(HttpStatus.NOT_FOUND); return new ResponseEntity<>(HttpStatus.NOT_FOUND);
} }
_manager.getDicomSCPInstance(id).setEnabled(flag); DicomSCPInstance instanceToChange = _manager.getDicomSCPInstance(id);
instanceToChange.setEnabled(flag);
_manager.setDicomSCPInstance(instanceToChange);
return new ResponseEntity<>(HttpStatus.OK); return new ResponseEntity<>(HttpStatus.OK);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment