Remove array calls and fix various bugs.

This commit is contained in:
James Cole
2018-07-24 21:12:48 +02:00
parent abb249643f
commit 780a15fe4f
5 changed files with 163 additions and 85 deletions

View File

@@ -496,7 +496,7 @@ class JournalRepository implements JournalRepositoryInterface
*/
public function getNoteText(TransactionJournal $journal): ?string
{
$note = $this->getNote($journal);
$note = $journal->notes()->first();
if (null === $note) {
return null;
}