How to edit trashed (soft deleted) item #866
Replies: 3 comments 10 replies
-
Hello @msyadav88 You can not edit a deleted item; to do this, you need to restore, by default, in a query is checked that is_deleted is null. If you want to add this feature, you will need to override the query like this:
Cheers. |
Beta Was this translation helpful? Give feedback.
4 replies
-
In the demo, I can not see even the show icon for trashed items.
In my case i can see the show as well as edit icon.
…On Mon, 4 Mar, 2024, 9:31 pm Pedro Martins, ***@***.***> wrote:
Hum, maybe I am missing your question, but you shouldn't have the edit
button on the trashed items:
image.png (view on web)
<https://github.com/Laravel-Backpack/community-forum/assets/7188159/89948f70-8df1-4b82-8162-410b55d1f704>
You can have a look at it in our demo:
https://demo.backpackforlaravel.com/admin/pet-shop/pet
Cheers
—
Reply to this email directly, view it on GitHub
<#866 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADMS2JFLKVHPZCOY4JBVD4DYWSLEFAVCNFSM6AAAAABEDXYKN6VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DMNRYHAZTO>
.
You are receiving this because you were mentioned.Message ID:
<Laravel-Backpack/community-forum/repo-discussions/866/comments/8668837@
github.com>
|
Beta Was this translation helpful? Give feedback.
6 replies
-
Great you was able to solve it. I will close this issue now, but please feel free to re-open or create a new one if needed. Cheers. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to edit a trashed item which is soft deleted, but it is giving 404 error.
The url is like /admin/orders/7/edit
Also the show page giving 404 /admin/orders/7/show
Beta Was this translation helpful? Give feedback.
All reactions