Various code cleanup.

This commit is contained in:
James Cole
2018-03-25 09:01:43 +02:00
parent dd9694890a
commit 6660306ac4
46 changed files with 327 additions and 121 deletions

View File

@@ -224,7 +224,7 @@ class TransactionRequest extends Request
return $first;
}
$account = $repository->findByName($accountName, [AccountType::ASSET]);
$account = $repository->findByNameNull($accountName, [AccountType::ASSET]);
if (is_null($account)) {
$validator->errors()->add($nameField, trans('validation.belongs_user'));