diff --git a/app/Services/DatatableService.php b/app/Services/DatatableService.php index fa5deabb2ac6..45a36cdc9e2d 100644 --- a/app/Services/DatatableService.php +++ b/app/Services/DatatableService.php @@ -78,8 +78,7 @@ class DatatableService $dropdown_contents = ''; $lastIsDivider = false; - //if (! $model->deleted_at || $model->deleted_at == '0000-00-00') { - if (! $model->is_deleted) { + if (! property_exists($model, 'is_deleted') || ! $model->is_deleted) { foreach ($datatable->actions() as $action) { if (count($action)) { // if show function isn't set default to true