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

Allow undeletion of items #19

Closed
matthiku opened this issue Feb 15, 2016 · 3 comments
Closed

Allow undeletion of items #19

matthiku opened this issue Feb 15, 2016 · 3 comments
Assignees

Comments

@matthiku
Copy link
Owner

As plan items can contain quite some important information but an authorized user might accidentally or prematurely delete items.

Using Laravel's soft-deletes, it would be possible to recover them.

That means another method is needed in the items controller to show and undelete those items.

@matthiku matthiku self-assigned this Feb 15, 2016
@matthiku
Copy link
Owner Author

When items are only "soft-deleted", it is not longer possible to delete a whole plan as the items still exist in the database. We need to add an option to show the "trash can" for that plan and a button for the admin to finally empty that trash can. Only then the plan can be deleted.

@matthiku
Copy link
Owner Author

How can I show both current and deleted items using the same code? (in items.blade.php)
How can I combine two result sets?

@matthiku
Copy link
Owner Author

Done with ability to restore items and perm delete them
changed: plan.blade, items.blade, itemcontroller, routes, helper

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