From 143ea69c0dd5d6706671ea5c4235faf8a3e53d46 Mon Sep 17 00:00:00 2001 From: James Cole Date: Mon, 19 Oct 2015 15:20:18 +0200 Subject: [PATCH] Fixed the fix (fixeption). --- app/Validation/FireflyValidator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) {