1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00

Merge pull request #4747 from turbo124/v5-develop

Fixes for task and task status order
This commit is contained in:
David Bomba 2021-01-22 22:18:51 +11:00 committed by GitHub
commit 1c3069d227
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View File

@ -122,6 +122,7 @@ class SetupController extends Controller
];
try {
foreach ($env_values as $property => $value) {
$this->updateEnvironmentProperty($property, $value);
}

View File

@ -29,7 +29,7 @@ class TaskStatusTransformer extends EntityTransformer
'created_at' => (int) $task_status->created_at,
'updated_at' => (int) $task_status->updated_at,
'archived_at' => (int) $task_status->deleted_at,
'status_order' => $task_status->status_order,
'status_order' => is_null($task_status->status_order) ? null : (int)$task_status->status_order,
];
}
}

View File

@ -67,7 +67,7 @@ class TaskTransformer extends EntityTransformer
'status_id' => $this->encodePrimaryKey($task->status_id) ?: '',
'status_sort_order' => (int) $task->status_sort_order, //deprecated 5.0.34
'is_date_based' => (bool) $task->is_date_based,
'status_order' => $task->status_order
'status_order' => is_null($task->status_order) ? null : (int)$task->status_order,
];
}
}