Fix for tests

This commit is contained in:
Hillel Coren 2017-07-21 07:40:25 +03:00
parent 25699f43c7
commit 499c97c70a

View File

@ -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