mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-12-12 09:52:20 +00:00
Fix argument order in piggy bank error message.
This commit is contained in:
@@ -239,7 +239,7 @@ class UpdatePiggyBank implements ActionInterface
|
|||||||
if (false === $repository->canAddAmount($piggyBank, $account, $amount)) {
|
if (false === $repository->canAddAmount($piggyBank, $account, $amount)) {
|
||||||
Log::warning(sprintf('Cannot add %s to piggy bank.', $amount));
|
Log::warning(sprintf('Cannot add %s to piggy bank.', $amount));
|
||||||
$currency = $accountRepository->getAccountCurrency($account) ?? Amount::getPrimaryCurrency();
|
$currency = $accountRepository->getAccountCurrency($account) ?? Amount::getPrimaryCurrency();
|
||||||
event(new RuleActionFailedOnArray($this->action, $array, trans('rules.cannot_add_to_piggy', ['amount' => Amount::formatAnything($amount, $currency, false), 'name' => $piggyBank->name])));
|
event(new RuleActionFailedOnArray($this->action, $array, trans('rules.cannot_add_to_piggy', ['amount' => Amount::formatAnything($currency, $amount, false), 'name' => $piggyBank->name])));
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user