mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-18 15:33:09 +00:00
Entities features: update the item metadata on relationship create/update/delete also when not using REST
This commit is contained in:
@@ -366,8 +366,12 @@ public class RelationshipServiceImpl implements RelationshipService {
|
|||||||
// authorization system here so that this failure doesn't happen when the items need to be update
|
// authorization system here so that this failure doesn't happen when the items need to be update
|
||||||
context.turnOffAuthorisationSystem();
|
context.turnOffAuthorisationSystem();
|
||||||
try {
|
try {
|
||||||
updateItem(context, relationship.getLeftItem());
|
if (!relationship.getLeftItem().isMetadataModified()) {
|
||||||
updateItem(context, relationship.getRightItem());
|
updateItem(context, relationship.getLeftItem());
|
||||||
|
}
|
||||||
|
if (!relationship.getRightItem().isMetadataModified()) {
|
||||||
|
updateItem(context, relationship.getRightItem());
|
||||||
|
}
|
||||||
//TODO: more items may need updates due to virtual metadata impacting items indirectly
|
//TODO: more items may need updates due to virtual metadata impacting items indirectly
|
||||||
//TODO: this does not handle updates to item metadata which impacts the other item's virtual metadata
|
//TODO: this does not handle updates to item metadata which impacts the other item's virtual metadata
|
||||||
} catch (AuthorizeException e) {
|
} catch (AuthorizeException e) {
|
||||||
|
Reference in New Issue
Block a user