sul-dlss / happy-heron

Self-Deposit for the Stanford Digital Repository (SDR): H2 is a Rails web application enabling users to deposit scholarly content into SDR
Apache License 2.0
10 stars 2 forks source link

Cancelling the deletion of a draft does not actually cancel the deletion - the draft is deleted. #3566

Closed hannahfrost closed 4 days ago

hannahfrost commented 5 days ago

On the page where a collection's deposits are listed (https://sdr.stanford.edu/collections/[numeric string]/works), when a work draft is listed, immediately to the right of the work title is displayed the pencil icon and the trashcan icon. Clicking the pencil icon opens the work edit screen. Clicking the trashcan icon results in a warning popup that reads:

Screenshot 2024-06-27 at 4 57 43 PM

If I click 'cancel' on the popup, I expect to return to the page with the list of collection deposits and for my draft work to still be listed and available for editing.

The actual behavior is that the draft is deleted (not retained for editing) when 'cancel' is clicked.

(The draft is also deleted when 'ok' is clicked, as expected.)

This bug was reported by a user and has been reproduced in a test collection in h2-prod.