From 8a02ead01343ff576fbc61fa4234e0250d152177 Mon Sep 17 00:00:00 2001 From: James Cole Date: Mon, 19 Oct 2015 15:16:30 +0200 Subject: [PATCH] Blind validator update. --- app/Validation/FireflyValidator.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Validation/FireflyValidator.php b/app/Validation/FireflyValidator.php index ad79b25c05..a27e3c8001 100644 --- a/app/Validation/FireflyValidator.php +++ b/app/Validation/FireflyValidator.php @@ -272,7 +272,9 @@ class FireflyValidator extends Validator $exclude = isset($parameters[2]) ? intval($parameters[2]) : 0; // get entries from table - $set = DB::table($table)->where('user_id', Auth::user()->id)->where('id', '!=', $exclude)->get([$field]); + $set = DB::table($table)->where('user_id', Auth::user()->id) + ->whereNull('deleted_at') + ->where('id', '!=', $exclude)->get([$field]); foreach ($set as $entry) { $fieldValue = $this->tryDecrypt($entry->$field);