Closed torriv83 closed 1 year ago
Hi Torri,
I need some more time to reproduce this, as I'm unable to reproduce. I'll get back to you asap.
i think i can fix this in the weekend or if is urgent anyone can pr
here
https://github.com/RickDBCN/filament-email/blob/main/src/Filament/Resources/EmailResource.php#L159
we need to add something like
->action(fn (Collection $records) => $records->each->delete()),
see here https://filamentphp.com/docs/3.x/tables/actions#bulk-actions
Hmm, I'm confident that the BulkDeleteAction should automatically include the delete for each record. Will need to check.
@RickDBCN if you remove ->action(function () { Notification::make() ->title('Emails succesfully deleted') ->success() ->send(); }),
i think it will work ok. the bulk action already sends a notification
I can confirm that removing the ->action resolves this bug for me. I have never done a PR before, so i'm not sure the step to make a PR.
I tried making a PR. hopefully it works :)
I tried making a PR. hopefully it works :)
It did, thanks!
What happened?
As stated in the discord chat a while back, the Bulk action does not delete.
How to reproduce the bug
I check all the emails i want to delete, choose bulk action, and then delete. i get a message saying that the records are successfully deleted. but they are not.
Package Version
1.0.7
PHP Version
8.2.0
Laravel Version
10.28.0
Which operating systems does with happen with?
No response
Notes
No response