Skip to content

Commit

Permalink
Should fix rule, category and other name checks. firefly-iii#793
Browse files Browse the repository at this point in the history
  • Loading branch information
Dorigo authored and Dorigo committed Sep 1, 2017
1 parent 2915fae commit ffaf48d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/Models/Bill.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
class Bill extends Model
{

use ValidatingTrait;
use SoftDeletes, ValidatingTrait;
/**
* The attributes that should be casted to native types.
*
Expand Down
2 changes: 1 addition & 1 deletion app/Validation/FireflyValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ public function validateUniqueObjectForUser($attribute, $value, $parameters): bo
$exclude = $parameters[2] ?? 0;

// 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]);

foreach ($set as $entry) {
Expand Down

0 comments on commit ffaf48d

Please sign in to comment.