mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-05 12:12:18 +00:00
SQL issue in piggy banks
This commit is contained in:
@@ -220,7 +220,7 @@ class RecurringRepository implements RecurringRepositoryInterface
|
||||
foreach ($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.*']);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user