how to pass parent record to relation manager bulkaction
I have this bulk action in a relationmanager:
I want to pass, alongside the
$records
, the parent record. how can I do that?
3 Replies
my goal initially was the make the action hidden if a certain attribute on the parent is set, but I couldn't do that with the
->hidden
since it doesn't accept callbacks
so what I am going to do instead is show an error notification if that attribute is set on the parent, and to do that I need to pass the parent recordthat works, thanks!