Fixed the fix (fixeption).

This commit is contained in:
James Cole 2015-10-19 15:20:18 +02:00
parent 8a02ead013
commit 143ea69c0d

View File

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