1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Merge branch 'develop' of github.com:invoiceninja/invoiceninja into develop

This commit is contained in:
Hillel Coren 2017-04-12 09:50:33 +03:00
commit 532c231194

View File

@ -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,