"Delete Collection and Items..." cannot be undone

If I delete a collection and the items in it with "Delete Collection and Items...", I can see that collection in the trash. I can "restore" it to the library, and also restore the items that were just deleted. But the restored collection remains empty, and the restored items do not get back to the restored collection.

Is it possible to add an option to undo the "Delete Collection and Items...", to restore the collection and the items that were delete together?
Or at least restore the items to the restored collection?

This is a problem also if deleting the collection and its containing items are done separately instead of using the "Delete Collection and Items...".
If I delete only the item, it can be restored to its original collections.
If I delete only the collection, it can be recovered with its original items.
But if I delete both, the restored item will not go back to the restored collection.

Zotero 8.0-beta.25+145fbfa19 (64-bit)
Windows 11
  • abaevbog Zotero Team
    I have not been able reproduce that. To confirm, you are deleting the collection with items via "Delete Collection and Items...". Then, you are restoring that collection, and after that restore the items. Is that the right order?
  • edited 16 days ago
    Any order gives the same result:
    1) Create a test collection with one test item
    2) Delete the test collection and the test item with the right-click menu option "Delete Collection and Items..."
    3) Go to the Bin
    4) Restore the test collection to the library with the right-click menu option "Restore to Library"
    5) Restore the test item with the right-click menu option "Restore to Library"
    6) Go to the test collection in My Library: it is empty

    Same result if I exchange steps 4 and 5.

    The Debug ID is D504901809.
    Zotero 8.0-beta.26+cc95b9374 (64-bit)
    Windows 11
  • One important thing:
    It works properly if I disable the automatic sync.
    So the sync is the culprit here.
  • Here are the complete manual steps to reproduce with automatic sync disabled:
    1) Create a test collection with one test item
    2) Delete the test collection and the test item with the right-click menu option "Delete Collection and Items..."
    3) Go to the Bin
    3bis) Sync
    4) Restore the test collection to the library with the right-click menu option "Restore to Library"
    5) Restore the test item with the right-click menu option "Restore to Library"
    6) Go to the test collection in My Library: it is empty
  • dstillman Zotero Team
    This should be fixed in the latest beta. (Modifying any item and syncing would remove it from any collections that were in the trash.) Thanks!
  • Thank you.
Sign In or Register to comment.