Fix tests, improve coverage.

This commit is contained in:
James Cole
2018-06-02 06:11:13 +02:00
parent 790aeb3c46
commit ddc1d81665
4 changed files with 38 additions and 7 deletions

View File

@@ -107,7 +107,7 @@ class LinkController extends Controller
return redirect(route('transactions.show', [$journal->id]));
}
$other = $this->journalRepository->find($linkInfo['transaction_journal_id']);
$other = $this->journalRepository->findNull($linkInfo['transaction_journal_id']);
$alreadyLinked = $this->repository->findLink($journal, $other);
if ($other->id === $journal->id) {