From 499c97c70a4e86037db22756537e811718797ada Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Fri, 21 Jul 2017 07:40:25 +0300 Subject: [PATCH] Fix for tests --- app/Services/DatatableService.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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