mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-19 07:53:08 +00:00
[DS-3952] Work around NPE problem in RequestItem: ensure that accept_request is set.
This commit is contained in:

committed by
Mark H. Wood

parent
a37c658931
commit
10dde35631
@@ -59,7 +59,9 @@ public class RequestItemBuilder
|
||||
} catch (SQLException ex) {
|
||||
return handleException(ex);
|
||||
}
|
||||
this.requestItem = requestItemService.findByToken(context, token);
|
||||
requestItem = requestItemService.findByToken(context, token);
|
||||
requestItem.setAccept_request(false);
|
||||
requestItemService.update(context, requestItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user