1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

Fixes for type status

This commit is contained in:
David Bomba 2020-10-30 23:15:45 +11:00
parent d5ea6fec60
commit b6e6518492

View File

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