Revert "Should fix rule, category and other name checks. #793"

This reverts commit ffaf48dda7.
This commit is contained in:
James Cole
2017-09-01 11:19:49 +02:00
parent ffaf48dda7
commit edd1b25330
2 changed files with 2 additions and 2 deletions

View File

@@ -28,7 +28,7 @@ use Watson\Validating\ValidatingTrait;
class Bill extends Model
{
use SoftDeletes, ValidatingTrait;
use ValidatingTrait;
/**
* The attributes that should be casted to native types.
*

View File

@@ -387,7 +387,7 @@ class FireflyValidator extends Validator
$exclude = $parameters[2] ?? 0;
// get entries from table
$set = DB::table($table)->where('user_id', auth()->user()->id)->whereNull('deleted_at')
$set = DB::table($table)->where('user_id', auth()->user()->id)
->where('id', '!=', $exclude)->get([$field]);
foreach ($set as $entry) {