mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04: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(),
|
'duration' => $task->getDuration(),
|
||||||
'updated_at' => (int) $this->getTimestamp($task->updated_at),
|
'updated_at' => (int) $this->getTimestamp($task->updated_at),
|
||||||
'archived_at' => (int) $this->getTimestamp($task->deleted_at),
|
'archived_at' => (int) $this->getTimestamp($task->deleted_at),
|
||||||
'invoice_id' => $task->invoice ? (int) $task->invoice->public_id : false,
|
'invoice_id' => $task->invoice ? (int) $task->invoice->public_id : 0,
|
||||||
'client_id' => $task->client ? (int) $task->client->public_id : false,
|
'client_id' => $task->client ? (int) $task->client->public_id : 0,
|
||||||
'project_id' => $task->project ? (int) $task->project->public_id : false,
|
'project_id' => $task->project ? (int) $task->project->public_id : 0,
|
||||||
'is_deleted' => (bool) $task->is_deleted,
|
'is_deleted' => (bool) $task->is_deleted,
|
||||||
'time_log' => $task->time_log,
|
'time_log' => $task->time_log,
|
||||||
'is_running' => (bool) $task->is_running,
|
'is_running' => (bool) $task->is_running,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user