From c9269c9b700f08583fafd8aa640d680a431106a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=BCneyt=20=C5=9Eent=C3=BCrk?= Date: Sun, 10 Jan 2021 15:43:51 +0300 Subject: [PATCH] fixed document module bulk action class.. --- app/Abstracts/View/Components/DocumentIndex.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/Abstracts/View/Components/DocumentIndex.php b/app/Abstracts/View/Components/DocumentIndex.php index 5b09838c6..d80ee4eff 100644 --- a/app/Abstracts/View/Components/DocumentIndex.php +++ b/app/Abstracts/View/Components/DocumentIndex.php @@ -2,6 +2,7 @@ namespace App\Abstracts\View\Components; +use Akaunting\Module\Module; use App\Abstracts\View\Components\Document as Base; use App\Events\Common\BulkActionsAdding; use Illuminate\Support\Str; @@ -466,7 +467,12 @@ abstract class DocumentIndex extends Base $module = module($alias); if (!$module instanceof Module) { - return; + $b = new \stdClass(); + $b->actions = []; + + event(new BulkActionsAdding($b)); + + return $b->actions; } $bulkActionClass = 'Modules\\' . $module->getStudlyName() . '\BulkActions\\' . $file_name;