mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-30 10:33:30 +00:00
SQL issue in piggy banks
This commit is contained in:
@@ -220,7 +220,7 @@ class RecurringRepository implements RecurringRepositoryInterface
|
|||||||
foreach ($meta as $metaEntry) {
|
foreach ($meta as $metaEntry) {
|
||||||
if ('piggy_bank_id' === $metaEntry->name) {
|
if ('piggy_bank_id' === $metaEntry->name) {
|
||||||
$piggyId = (int)$metaEntry->value;
|
$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