mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-02 08:21:09 -08:00
added name back
This commit is contained in:
parent
6d65f6646f
commit
c9d46856a3
|
@ -231,7 +231,7 @@ class ValidationServiceProvider extends ServiceProvider
|
||||||
->whereNotNull('company_id')
|
->whereNotNull('company_id')
|
||||||
->whereNotNull('location_id')
|
->whereNotNull('location_id')
|
||||||
->where('id', '!=', $data['id'])
|
->where('id', '!=', $data['id'])
|
||||||
->count();
|
->count('name');
|
||||||
|
|
||||||
return $count < 1;
|
return $count < 1;
|
||||||
}else // for entering in new departments
|
}else // for entering in new departments
|
||||||
|
@ -241,7 +241,7 @@ class ValidationServiceProvider extends ServiceProvider
|
||||||
->where('company_id', $data['company_id'])
|
->where('company_id', $data['company_id'])
|
||||||
->whereNotNull('company_id')
|
->whereNotNull('company_id')
|
||||||
->whereNotNull('location_id')
|
->whereNotNull('location_id')
|
||||||
->count();
|
->count('name');
|
||||||
|
|
||||||
return $count < 1;
|
return $count < 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue