fix issue with CrudConfiguration::setGlobalBatchAction

This commit is contained in:
Simon Vieille 2023-10-12 16:04:03 +02:00
parent 521ed5ce64
commit b9b07c1409
Signed by: deblan
GPG key ID: 579388D585F70417

View file

@ -142,7 +142,7 @@ class CrudConfiguration
callable $callback callable $callback
): self ): self
{ {
$this->setBatchAction($page, $action, $name); $this->setBatchAction($page, $action, $label, $callback);
$this->batchActions[$page][$action]['isGlobal'] = true; $this->batchActions[$page][$action]['isGlobal'] = true;
return $this; return $this;