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:
commit
1c3069d227
@ -122,6 +122,7 @@ class SetupController extends Controller
|
||||
];
|
||||
|
||||
try {
|
||||
|
||||
foreach ($env_values as $property => $value) {
|
||||
$this->updateEnvironmentProperty($property, $value);
|
||||
}
|
||||
|
@ -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,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
@ -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,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user