Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
SQL issue in piggy banks
James Cole98ae0efb16c4
diff --git a/app/Repositories/Recurring/RecurringRepository.php b/app/Repositories/Recurring/RecurringRepository.phpindex ea85e436a3..cdd415d8b9 100644--- a/app/Repositories/Recurring/RecurringRepository.php+++ b/app/Repositories/Recurring/RecurringRepository.php@@ -220,7 +220,7 @@ class RecurringRepository implements RecurringRepositoryInterfaceforeach ($meta as $metaEntry) {if ('piggy_bank_id' === $metaEntry->name) {$piggyId = (int)$metaEntry->value;- return $this->user->piggyBanks()->where('id', $piggyId)->first(['piggy_banks.*']);+ return $this->user->piggyBanks()->where('piggy_banks.id', $piggyId)->first(['piggy_banks.*']);}}