mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-12 14:12:44 +01:00
fix for non boolean output (#1201)
This commit is contained in:
parent
f8d95e1a31
commit
f88aa8f8e3
@ -31,7 +31,7 @@ class ActivityTransformer extends EntityTransformer
|
|||||||
'credit_id' => $activity->credit ? $activity->credit->public_id : null,
|
'credit_id' => $activity->credit ? $activity->credit->public_id : null,
|
||||||
'updated_at' => $this->getTimestamp($activity->updated_at),
|
'updated_at' => $this->getTimestamp($activity->updated_at),
|
||||||
'expense_id' => $activity->expense_id ? $activity->expense->public_id : null,
|
'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
|
'contact_id' => $activity->contact_id ? $activity->contact->public_id : null
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user