mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-17 15:03:18 +00:00
Revert "77817: Mark item as modified when adding to/removing from collection"
This reverts commit d80d26db
This commit is contained in:
@@ -612,7 +612,6 @@ public class CollectionServiceImpl extends DSpaceObjectServiceImpl<Collection> i
|
|||||||
// Instead we add the collection to an item which works in the same way.
|
// Instead we add the collection to an item which works in the same way.
|
||||||
if (!item.getCollections().contains(collection)) {
|
if (!item.getCollections().contains(collection)) {
|
||||||
item.addCollection(collection);
|
item.addCollection(collection);
|
||||||
item.setModified();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
context.addEvent(new Event(Event.ADD, Constants.COLLECTION, collection.getID(),
|
context.addEvent(new Event(Event.ADD, Constants.COLLECTION, collection.getID(),
|
||||||
@@ -633,7 +632,7 @@ public class CollectionServiceImpl extends DSpaceObjectServiceImpl<Collection> i
|
|||||||
} else {
|
} else {
|
||||||
//Remove the item from the collection if we have multiple collections
|
//Remove the item from the collection if we have multiple collections
|
||||||
item.removeCollection(collection);
|
item.removeCollection(collection);
|
||||||
item.setModified();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
context.addEvent(new Event(Event.REMOVE, Constants.COLLECTION,
|
context.addEvent(new Event(Event.REMOVE, Constants.COLLECTION,
|
||||||
|
Reference in New Issue
Block a user