Blind validator update.

This commit is contained in:
James Cole 2015-10-19 15:16:30 +02:00
parent 930d5ab941
commit 8a02ead013

View File

@ -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);