[GH-ISSUE #463] When deleting last page - error is reported as success #358

Open
opened 2026-02-25 21:31:46 +03:00 by kerem · 0 comments
Owner

Originally created by @ciur on GitHub (May 21, 2022).
Original GitHub issue: https://github.com/ciur/papermerge/issues/463

Originally assigned to: @ciur on GitHub.

Description
In document viewer when I delete last page of the document (i.e. document has only one page) - page is not deleted and 'success' info message pops up saying that "page was successfully deleted!"

Expected
Error message should pop up and tell me that 'deleting last page of the document is not allowed'. Maybe add to the message that 'in case you don't need this document anymore, use delete document menu'

Actual
What actually happens - 'success info' message appear.

delete-last-page-should-show-user-an-error

Info:

  • OS: Ubuntu 22.04 LTS
  • Browser: ALL
  • Database: ALL
  • Papermerge Version: papermerge 2.1 - alpha - latest
Originally created by @ciur on GitHub (May 21, 2022). Original GitHub issue: https://github.com/ciur/papermerge/issues/463 Originally assigned to: @ciur on GitHub. **Description** In document viewer when I delete last page of the document (i.e. document has only one page) - page is not deleted and 'success' info message pops up saying that "page was successfully deleted!" **Expected** **Error message should pop up** and tell me that 'deleting last page of the document is not allowed'. Maybe add to the message that 'in case you don't need this document anymore, use delete document menu' **Actual** What actually happens - 'success info' message appear. ![delete-last-page-should-show-user-an-error](https://user-images.githubusercontent.com/24827601/169637904-f23c60a3-be88-4af5-906c-672beade644b.gif) **Info:** - OS: Ubuntu 22.04 LTS - Browser: ALL - Database: ALL - Papermerge Version: papermerge 2.1 - alpha - latest
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/papermerge#358
No description provided.