From b6e651849218faa104663653539e7b4a58d2fa8c Mon Sep 17 00:00:00 2001 From: David Bomba Date: Fri, 30 Oct 2020 23:15:45 +1100 Subject: [PATCH] Fixes for type status --- app/Traits/GenerateMigrationResources.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Traits/GenerateMigrationResources.php b/app/Traits/GenerateMigrationResources.php index a0dab67e73..34821ee69d 100644 --- a/app/Traits/GenerateMigrationResources.php +++ b/app/Traits/GenerateMigrationResources.php @@ -1048,6 +1048,7 @@ trait GenerateMigrationResources $status = TaskStatus::createNew(); $status->name = trans('texts.' . $defaults[$i]); $status->sort_order = $i; + $status->is_deleted = false; $status->save(); } @@ -1065,7 +1066,7 @@ trait GenerateMigrationResources 'company_id' => $this->account->id, 'user_id' => $task_status->user_id, 'status_sort_order' => $task_status->sort_order, - 'is_deleted' => $task_status->is_deleted, + 'is_deleted' => $task_status->is_deleted ?: false, 'created_at' => $task_status->created_at ? $task_status->created_at->toDateString() : null, 'updated_at' => $task_status->updated_at ? $task_status->updated_at->toDateString() : null, 'deleted_at' => $task_status->deleted_at ? $task_status->deleted_at->toDateString() : null,