mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 13:54:30 -04:00
Remove unneeded check
This commit is contained in:
parent
9ef448c2b8
commit
67cc5599cc
@ -5,8 +5,6 @@ use App\Services\DatatableService;
|
|||||||
|
|
||||||
class BaseService
|
class BaseService
|
||||||
{
|
{
|
||||||
public static $bulk_actions = array('archive', 'restore', 'delete');
|
|
||||||
|
|
||||||
use DispatchesJobs;
|
use DispatchesJobs;
|
||||||
|
|
||||||
protected function getRepo()
|
protected function getRepo()
|
||||||
@ -16,7 +14,7 @@ class BaseService
|
|||||||
|
|
||||||
public function bulk($ids, $action)
|
public function bulk($ids, $action)
|
||||||
{
|
{
|
||||||
if ( ! $ids || ! in_array($action, static::$bulk_actions) ) {
|
if ( ! $ids ) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user