mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-17 01:42:19 +00:00
Should fix rule, category and other name checks. #793
This commit is contained in:
@@ -28,7 +28,7 @@ use Watson\Validating\ValidatingTrait;
|
|||||||
class Bill extends Model
|
class Bill extends Model
|
||||||
{
|
{
|
||||||
|
|
||||||
use ValidatingTrait;
|
use SoftDeletes, ValidatingTrait;
|
||||||
/**
|
/**
|
||||||
* The attributes that should be casted to native types.
|
* The attributes that should be casted to native types.
|
||||||
*
|
*
|
||||||
|
@@ -387,7 +387,7 @@ class FireflyValidator extends Validator
|
|||||||
$exclude = $parameters[2] ?? 0;
|
$exclude = $parameters[2] ?? 0;
|
||||||
|
|
||||||
// get entries from table
|
// get entries from table
|
||||||
$set = DB::table($table)->where('user_id', auth()->user()->id)
|
$set = DB::table($table)->where('user_id', auth()->user()->id)->whereNull('deleted_at')
|
||||||
->where('id', '!=', $exclude)->get([$field]);
|
->where('id', '!=', $exclude)->get([$field]);
|
||||||
|
|
||||||
foreach ($set as $entry) {
|
foreach ($set as $entry) {
|
||||||
|
Reference in New Issue
Block a user