mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
fix casting of ints to bools (#1430)
This commit is contained in:
parent
cc932b9064
commit
7e32d80337
@ -44,9 +44,9 @@ class TaskTransformer extends EntityTransformer
|
||||
'duration' => $task->getDuration(),
|
||||
'updated_at' => (int) $this->getTimestamp($task->updated_at),
|
||||
'archived_at' => (int) $this->getTimestamp($task->deleted_at),
|
||||
'invoice_id' => $task->invoice ? (int) $task->invoice->public_id : false,
|
||||
'client_id' => $task->client ? (int) $task->client->public_id : false,
|
||||
'project_id' => $task->project ? (int) $task->project->public_id : false,
|
||||
'invoice_id' => $task->invoice ? (int) $task->invoice->public_id : 0,
|
||||
'client_id' => $task->client ? (int) $task->client->public_id : 0,
|
||||
'project_id' => $task->project ? (int) $task->project->public_id : 0,
|
||||
'is_deleted' => (bool) $task->is_deleted,
|
||||
'time_log' => $task->time_log,
|
||||
'is_running' => (bool) $task->is_running,
|
||||
|
Loading…
Reference in New Issue
Block a user