Added search_terms to the bulk action event
This commit is contained in:
parent
af263bc2a5
commit
1a7fa4663e
1 changed files with 4 additions and 0 deletions
|
@ -14,6 +14,8 @@ class BulkActionBlockBuildingEvent extends Event
|
|||
/** @var array */
|
||||
public $actions = [];
|
||||
|
||||
public $search_terms = [];
|
||||
|
||||
public function add_action(String $action, string $button_text, String $confirmation_message = "", String $block = "", int $position = 40)
|
||||
{
|
||||
if ($block == null) {
|
||||
|
@ -58,6 +60,8 @@ class BulkActions extends Extension
|
|||
|
||||
if ($user->is_logged_in()) {
|
||||
$babbe = new BulkActionBlockBuildingEvent();
|
||||
$babbe->search_terms = $event->search_terms;
|
||||
|
||||
send_event($babbe);
|
||||
|
||||
if (sizeof($babbe->actions) == 0) {
|
||||
|
|
Reference in a new issue