1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

fix for non boolean output (#1201)

This commit is contained in:
David Bomba 2016-12-18 14:17:20 +11:00 committed by GitHub
parent f8d95e1a31
commit f88aa8f8e3

View File

@ -31,7 +31,7 @@ class ActivityTransformer extends EntityTransformer
'credit_id' => $activity->credit ? $activity->credit->public_id : null,
'updated_at' => $this->getTimestamp($activity->updated_at),
'expense_id' => $activity->expense_id ? $activity->expense->public_id : null,
'is_system' => (bool) $activity->is_system ? $activity->is_system : null,
'is_system' => $activity->is_system ? (bool) $activity->is_system : null,
'contact_id' => $activity->contact_id ? $activity->contact->public_id : null
];
}