mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-18 23:43:06 +00:00
[Task 71405] fixed the Process Files endpoints and added two tests for them
This commit is contained in:
@@ -206,10 +206,12 @@ public class ProcessServiceImpl implements ProcessService {
|
||||
if (type == null) {
|
||||
return null;
|
||||
} else {
|
||||
for (Bitstream bitstream : allBitstreams) {
|
||||
if (StringUtils.equals(bitstreamService.getMetadata(bitstream, Process.BITSTREAM_TYPE_METADATAFIELD),
|
||||
type)) {
|
||||
return bitstream;
|
||||
if (allBitstreams != null) {
|
||||
for (Bitstream bitstream : allBitstreams) {
|
||||
if (StringUtils.equals(bitstreamService.getMetadata(bitstream,
|
||||
Process.BITSTREAM_TYPE_METADATAFIELD), type)) {
|
||||
return bitstream;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user