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:
parent
d5ea6fec60
commit
b6e6518492
@ -1048,6 +1048,7 @@ trait GenerateMigrationResources
|
|||||||
$status = TaskStatus::createNew();
|
$status = TaskStatus::createNew();
|
||||||
$status->name = trans('texts.' . $defaults[$i]);
|
$status->name = trans('texts.' . $defaults[$i]);
|
||||||
$status->sort_order = $i;
|
$status->sort_order = $i;
|
||||||
|
$status->is_deleted = false;
|
||||||
$status->save();
|
$status->save();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1065,7 +1066,7 @@ trait GenerateMigrationResources
|
|||||||
'company_id' => $this->account->id,
|
'company_id' => $this->account->id,
|
||||||
'user_id' => $task_status->user_id,
|
'user_id' => $task_status->user_id,
|
||||||
'status_sort_order' => $task_status->sort_order,
|
'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,
|
'created_at' => $task_status->created_at ? $task_status->created_at->toDateString() : null,
|
||||||
'updated_at' => $task_status->updated_at ? $task_status->updated_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,
|
'deleted_at' => $task_status->deleted_at ? $task_status->deleted_at->toDateString() : null,
|
||||||
|
Loading…
Reference in New Issue
Block a user