Various fixes and checks.

This commit is contained in:
James Cole
2018-12-21 10:11:18 +01:00
parent 78cb6da21a
commit 4f5d8f830e
8 changed files with 83 additions and 8 deletions

View File

@@ -65,7 +65,7 @@ class TransactionLinkTransformer extends AbstractTransformer
'updated_at' => $link->updated_at->toAtomString(),
'inward_id' => $link->source_id,
'outward_id' => $link->destination_id,
'notes' => $notes,
'notes' => '' === $notes ? null : $notes,
'links' => [
[
'rel' => 'self',