mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-02 08:21:09 -08:00
Fixed #7083 - Removed user_exists constraint on department save
If the user has been deleted, this prevented the department from being successfully saved on edit
This commit is contained in:
parent
2dd31544fe
commit
a014af4c47
|
@ -26,7 +26,6 @@ class Department extends SnipeModel
|
||||||
|
|
||||||
protected $rules = [
|
protected $rules = [
|
||||||
'name' => 'required|max:255',
|
'name' => 'required|max:255',
|
||||||
'user_id' => 'nullable|exists:users,id',
|
|
||||||
'location_id' => 'numeric|nullable',
|
'location_id' => 'numeric|nullable',
|
||||||
'company_id' => 'numeric|nullable',
|
'company_id' => 'numeric|nullable',
|
||||||
'manager_id' => 'numeric|nullable',
|
'manager_id' => 'numeric|nullable',
|
||||||
|
|
Loading…
Reference in a new issue