Skip to content

Firefly III: a personal finances manager

Fixed the fix (fixeption).

James Cole143ea69c0dd5
diff --git a/app/Validation/FireflyValidator.php b/app/Validation/FireflyValidator.php
index a27e3c8001..d6f2650198 100644
--- a/app/Validation/FireflyValidator.php
+++ b/app/Validation/FireflyValidator.php
@@ -273,7 +273,6 @@ class FireflyValidator extends Validator
// get entries from table
$set = DB::table($table)->where('user_id', Auth::user()->id)
- ->whereNull('deleted_at')
->where('id', '!=', $exclude)->get([$field]);
foreach ($set as $entry) {
@@ -298,6 +297,7 @@ class FireflyValidator extends Validator
{
$exclude = isset($parameters[0]) ? $parameters[0] : null;
$query = DB::table('piggy_banks');
+ $query->whereNull('deleted_at');
$query->leftJoin('accounts', 'accounts.id', '=', 'piggy_banks.account_id');
$query->where('accounts.user_id', Auth::user()->id);
if (!is_null($exclude)) {