Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plan will be deleted after deleting all trashed items #33

Closed
matthiku opened this issue Feb 19, 2016 · 2 comments
Closed

Plan will be deleted after deleting all trashed items #33

matthiku opened this issue Feb 19, 2016 · 2 comments

Comments

@matthiku
Copy link
Owner

This happens when you try to delete a plan from the Plan List view and the plan still contains trashed items. You get an error saying that the plan is not empty and you will be directed to the Plan Details page. But the URL now is plans/{id}/delete, and so when the user clicks on the short-cut "Delete all trashed items permanently", the trashed items will be deleted but the plan also!

@matthiku matthiku added the bug label Feb 19, 2016
@matthiku matthiku self-assigned this Feb 19, 2016
@matthiku
Copy link
Owner Author

Problem was that the deleteAllTrashed() method in the ItemController sends the user back to the previous page. In this case, it was the 'delete Plan' URl, and so this action is repeated and now is successful since all items incl. the trashed items are gone.

Big question is: while this is not intended, can it still be acceptable since it only happens when a user wanted to delete a plan anyway?

@matthiku
Copy link
Owner Author

Nothing changed

I'll leave this behaviour as is for now since it seems to be convenient....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant